Protocol

VNDocumentCameraViewControllerDelegate

A delegate protocol through which the document camera returns its scanned results.

Declaration

protocol VNDocumentCameraViewControllerDelegate

Overview

Your app is responsible for dismissing the document camera in all delegate callback methods.

Topics

Determining Scan Results

func documentCameraViewController(VNDocumentCameraViewController, didFinishWith: VNDocumentCameraScan)

Tells the delegate that the user successfully saved a scanned document from the document camera.

func documentCameraViewControllerDidCancel(VNDocumentCameraViewController)

Tells the delegate that the user canceled out of the document scanner camera.

func documentCameraViewController(VNDocumentCameraViewController, didFailWithError: Error)

Tells the delegate that document scanning failed while the camera view controller was active.

Relationships

Inherits From

See Also

Document Scanning

class VNDocumentCameraViewController

A view controller that shows what the document camera sees.

class VNDocumentCameraScan

A single document scanned in the document camera.