Package apple.visionkit.protocol
Interface VNDocumentCameraViewControllerDelegate
-
public interface VNDocumentCameraViewControllerDelegate
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voiddocumentCameraViewControllerDidCancel(VNDocumentCameraViewController controller)The delegate will receive this call when the user cancels.default voiddocumentCameraViewControllerDidFailWithError(VNDocumentCameraViewController controller, NSError error)The delegate will receive this call when the user is unable to scan, with the following error.default voiddocumentCameraViewControllerDidFinishWithScan(VNDocumentCameraViewController controller, VNDocumentCameraScan scan)The client is responsible for dismissing the document camera in these callbacks.
-
-
-
Method Detail
-
documentCameraViewControllerDidFailWithError
default void documentCameraViewControllerDidFailWithError(VNDocumentCameraViewController controller, NSError error)
The delegate will receive this call when the user is unable to scan, with the following error.
-
documentCameraViewControllerDidFinishWithScan
default void documentCameraViewControllerDidFinishWithScan(VNDocumentCameraViewController controller, VNDocumentCameraScan scan)
The client is responsible for dismissing the document camera in these callbacks. The delegate will receive one of the following calls, depending whether the user saves or cancels, or if the session fails.
-
documentCameraViewControllerDidCancel
default void documentCameraViewControllerDidCancel(VNDocumentCameraViewController controller)
The delegate will receive this call when the user cancels.
-
-