Start Document Detection
class YouController: UIViewController, DocumentDetectorControllerDelegate{
// MARK: - Document Detection Delegates
func documentDetectionController(_ scanner: DocumentDetectorController, didFinishWithResults results: DocumentDetectorResult) {
//Called when the process was successfully executed
//The result variable contains the data obtained
}
func documentDetectionControllerDidCancel(_ scanner: DocumentDetectorController) {
// Called when the user cancel
}
func documentDetectionController(_ scanner: DocumentDetectorController, didFailWithError error: DocumentDetectorFailure) {
//Called when the process terminate with an error
//The error variable contains info about error
}
}Last updated

