Class

VNDocumentCameraViewController

A view controller that shows what the document camera sees.

Declaration

class VNDocumentCameraViewController : UIViewController

Overview

Present this view controller, as follows, and add it to your view controller hierarchy to scan documents.

let documentCameraViewController = VNDocumentCameraViewController()
documentCameraViewController.delegate = self
present(documentCameraViewController, animated: true)

Topics

Supporting the Document Camera

var delegate: VNDocumentCameraViewControllerDelegate?

The delegate to be notified when the user saves or cancels the document scanner.

class var isSupported: Bool

A Boolean variable that indicates whether or not the current device supports document scanning.

See Also

Document Scanning

protocol VNDocumentCameraViewControllerDelegate

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

class VNDocumentCameraScan

A single document scanned in the document camera.