SBSDKMRZScannerViewControllerDelegate
@protocol SBSDKMRZScannerViewControllerDelegate <NSObject>
The delegation protocol for the SBSDKMRZScannerViewController
class.
-
Informs the delegate that the scanner has detected a machine-readable zone.
Declaration
Objective-C
- (void)mrzScannerController:(nonnull SBSDKMRZScannerViewController *)controller didDetectMRZ: (nonnull SBSDKMachineReadableZoneRecognizerResult *)result;
Swift
func mrzScannerController(_ controller: SBSDKMRZScannerViewController, didDetectMRZ result: SBSDKMachineReadableZoneRecognizerResult)
Parameters
controller
The calling SBSDKMRZScannerViewController.
result
The detected machine-readable zone result.
-
Optional. Asks the delegate if the scanner should detect machine-readable zones on the next video frame.
Declaration
Objective-C
- (BOOL)mrzScannerControllerShouldDetectMRZ: (nonnull SBSDKMRZScannerViewController *)controller;
Swift
optional func mrzScannerControllerShouldDetectMRZ(_ controller: SBSDKMRZScannerViewController) -> Bool
Parameters
controller
The calling SBSDKMRZScannerViewController.
Return Value
Return YES if you want to detect machine-readable zones on the next video frame, NO otherwise.