GiniVisionDelegate
@objc
public protocol GiniVisionDelegate
Delegate to inform the reveiver about the current status of the Gini Vision Library. Makes use of callbacks for handling incoming data and to control view controller presentation.
Note
Screen API only.-
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: GiniVisionDocument, networkDelegate: GiniVisionNetworkDelegate)
Parameters
document
networkDelegate
GiniVisionNetworkDelegate
used to tell the Gini Vision 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: [GiniVisionDocument], networkDelegate: GiniVisionNetworkDelegate)
Parameters
documents
An array containing on or several reviewed
GiniVisionDocument
networkDelegate
GiniVisionNetworkDelegate
used to tell the Gini Vision Library 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: GiniVisionDocument)
-
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()