ScanViewController
public class ScanViewController : UIViewController
extension ScanViewController: UIAdaptivePresentationControllerDelegate
A view controller used to present the capture view for an ID scan session.
Discussion: This UIViewController is intended to be used when a scan is started. The controller can be presented in many ways, it can be used as a child view controller while presenting the with other views within the parent controller hierarchy or presented from a parent view controller to give a full screen capture experience
Example Usage:
class SomeController: UIViewController {
...
private let documentScanHandler: DSHandler!
func viewDidLoad() {
super.viewDidLoad()
documentScanHandler = DSHandler(delegate: self)
}
func doScan() {
let options = DSID1Options()
options.side = .Back
options.detectFace = false
documentScanHandler?.options = options
self.present(documentScanHandler.scanController, animated: true)
documentScanHandler?.start()
}
...
}
extension: DSHandlerDelegate {
func handleScan(result: DSResult) {
//do something with result
}
}
-
Undocumented
Declaration
Swift
public override func viewDidLoad()
-
Undocumented
Declaration
Swift
public override func viewDidAppear(_ animated: Bool)
-
Undocumented
Declaration
Swift
public override func viewDidLayoutSubviews()
-
Undocumented
Declaration
Swift
public override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator)
-
Undocumented
Declaration
Swift
public func presentationControllerWillDismiss(_ presentationController: UIPresentationController)