SBSDKUIIDCardScannerViewControllerDelegate
@protocol
SBSDKUIIDCardScannerViewControllerDelegate <SBSDKUIViewControllerDelegate>
Delegate protocol for ‘SBSDKUIIDCardScannerViewController’.
-
Informs the delegate that an ID card has been detected and the view controller has been dismissed.
Declaration
Objective-C
- (void)idCardScannerViewController: (nonnull SBSDKUIIDCardScannerViewController *)viewController didFinishWithCard:(nonnull SBSDKIDCard *)card;
Swift
func idCardScannerViewController(_ viewController: SBSDKUIIDCardScannerViewController, didFinishWith card: SBSDKIDCard)
Parameters
viewController
The detection view controller that detected an ID card.
card
Detected ID card. One of
SBSDKIDCard
subclasses. -
Optional: informs the delegate that the ‘SBSDKUIIDCardScannerViewController’ has been cancelled and dismissed.
Declaration
Objective-C
- (void)idScannerViewControllerDidCancel: (nonnull SBSDKUIIDCardScannerViewController *)viewController;
Swift
optional func idScannerViewControllerDidCancel(_ viewController: SBSDKUIIDCardScannerViewController)
Parameters
viewController
The ‘SBSDKUIIDCardScannerViewController’ that did dismiss.