CameraViewControllerDelegate
@objc
public protocol CameraViewControllerDelegate
The CameraViewControllerDelegate protocol defines methods that allow you to handle captured images and user actions.
Note
Component API only.-
Called when a user takes a picture, imports a PDF/QRCode or imports one or several images. Once the method has been implemented, it is necessary to check if the number of documents accumulated doesn’t exceed the minimun (
GiniImageDocument.maxPagesCount).Declaration
Swift
@objc func camera(_ viewController: CameraViewController, didCapture document: GiniVisionDocument)Parameters
viewControllerCameraViewControllerwhere the documents were taken.documentOne or several documents either captured or imported in the
CameraViewController. They can contain an error produced in the validation process. -
Called when a user selects a picker from the picker selector sheet.
Declaration
Swift
@objc func camera(_ viewController: CameraViewController, didSelect documentPicker: DocumentPickerType)Parameters
viewControllerCameraViewControllerwhere the documents were taken.documentPickerDocumentPickerTypeselected in the sheet. -
Called when the
CameraViewControllerappears.Declaration
Swift
@objc func cameraDidAppear(_ viewController: CameraViewController)Parameters
viewControllerCamera view controller that appears.
-
Called when a user taps the
MultipageReviewButton(the one with the thumbnail of the images(s) taken). Once this method is called, theMultipageReviewViewControllershould be presented.Declaration
Swift
@objc func cameraDidTapMultipageReviewButton(_ viewController: CameraViewController)Parameters
viewControllerCamera view controller where the button was tapped.
View on GitHub
CameraViewControllerDelegate Protocol Reference