SBSDKLicensePlateScannerViewControllerDelegate
@protocol SBSDKLicensePlateScannerViewControllerDelegate <NSObject>
The delegate protocol for the SBSDKLicensePlateScannerViewController.
-
Informs the delegate that a license plate has been recognized successfully.
Declaration
Objective-C
- (void)licensePlateScannerViewController: (nonnull SBSDKLicensePlateScannerViewController *)controller didRecognizeLicensePlate: (nonnull SBSDKLicensePlateScannerResult *) licensePlateResult onImage:(nonnull UIImage *)image;
Swift
func licensePlateScannerViewController(_ controller: SBSDKLicensePlateScannerViewController, didRecognizeLicensePlate licensePlateResult: SBSDKLicensePlateScannerResult, on image: UIImage)
Parameters
controller
The SBSDKLicensePlateScannerViewController instance that detected/recognized the license plate.
licensePlateResult
The result of the detection or recognition.
image
The original image where the ID card has been detected on.
-
Asks the delegate whether the next video frame should be scanned or not. Optional. Use to skip frames or pause scanning for a while.
Declaration
Objective-C
- (BOOL)licensePlateScannerViewControllerShouldRecognize: (nonnull SBSDKLicensePlateScannerViewController *)controller;
Swift
optional func licensePlateScannerViewControllerShouldRecognize(_ controller: SBSDKLicensePlateScannerViewController) -> Bool
Parameters
controller
The SBSDKLicensePlateScannerViewController that wants to scan the video frame.
Return Value
YES, if you want to scan the next video frame, NO otherwise.