Interface VNDocumentCameraViewControllerDelegate


  • public interface VNDocumentCameraViewControllerDelegate
    • 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.