SBSDKUIMRZScannerViewControllerDelegate
@protocol
SBSDKUIMRZScannerViewControllerDelegate <SBSDKUIViewControllerDelegate>
Delegate protocol for ‘SBSDKUIMRZScannerViewController’.
-
Informs the delegate that a machine readable zone has been detected.
Declaration
Objective-C
- (void) mrzDetectionViewController: (nonnull SBSDKUIMRZScannerViewController *)viewController didDetect: (nonnull SBSDKMachineReadableZoneRecognizerResult *) zone;
Swift
func mrzDetectionViewController(_ viewController: SBSDKUIMRZScannerViewController, didDetect zone: SBSDKMachineReadableZoneRecognizerResult)
Parameters
viewController
The detection view controller that detected the machine readable zone.
zone
The detected machine readable zone.
-
Optional: informs the delegate that the ‘SBSDKUIMRZScannerViewController’ has been cancelled and dismissed.
Declaration
Objective-C
- (void)mrzDetectionViewControllerDidCancel: (nonnull SBSDKUIMRZScannerViewController *)viewController;
Swift
optional func mrzDetectionViewControllerDidCancel(_ viewController: SBSDKUIMRZScannerViewController)
Parameters
viewController
The ‘SBSDKUIMRZScannerViewController’ that did dismiss.