GiniCaptureDelegate
@objc
public protocol GiniCaptureDelegate
Delegate to inform the reveiver about the current status of the Gini Capture SDK. Makes use of callbacks for handling incoming data and to control view controller presentation.
-
Called when the user has taken a picture or imported a file (image or PDF) from camera roll or document explorer
Declaration
Swift
func didCapture(document: GiniCaptureDocument, networkDelegate: GiniCaptureNetworkDelegate)
Parameters
document
networkDelegate
GiniCaptureNetworkDelegate
used to tell the Gini Capture Library to upload the pages upload state -
Called when the user has reviewed one or several documents. It is used to add any optional parameters, like rotationDelta, when creating the composite document.
Declaration
Swift
func didReview(documents: [GiniCaptureDocument], networkDelegate: GiniCaptureNetworkDelegate)
Parameters
documents
An array containing on or several reviewed
GiniCaptureDocument
networkDelegate
GiniCaptureNetworkDelegate
used to tell the Gini Capture SDK that the documents were reviewed and can be analyzed or uploaded. -
Called when the user cancels capturing on the camera screen. Should be used to dismiss the presented view controller.
Declaration
Swift
func didCancelCapturing()
-
Called when the user navigates back from the review screen to the camera potentially to retake an image. Should be used to cancel any ongoing analysis task on the image.
Declaration
Swift
func didCancelReview(for document: GiniCaptureDocument)
-
Called when the user navigates back from the analysis screen to the review screen. It is used to cancel any ongoing analysis task on the image.
Declaration
Swift
func didCancelAnalysis()
-
Called when the ‘Enter Manually’ was pressed within No Result screen
Declaration
Swift
func didPressEnterManually()