SBSDKHealthInsuranceCardScannerViewControllerDelegate
@protocol SBSDKHealthInsuranceCardScannerViewControllerDelegate <NSObject>
The delegation protocol for the SBSDKHealthInsuranceCardScannerViewController
class.
-
Informs the delegate that a health insurance card has been scanned.
Declaration
Objective-C
- (void) healthInsuranceCardScannerViewController: (nonnull SBSDKHealthInsuranceCardScannerViewController *)viewController didScanHealthInsuranceCard: (nonnull SBSDKHealthInsuranceCardRecognitionResult *)card;
Swift
func healthInsuranceCardScannerViewController(_ viewController: SBSDKHealthInsuranceCardScannerViewController, didScanHealthInsuranceCard card: SBSDKHealthInsuranceCardRecognitionResult)
Parameters
controller
The SBSDKHealthInsuranceCardScannerViewController instance that scanned the health insurance card.
card
The result of the scan.
-
Asks the delegate if the health insurance card scanner should scan the next video frame. Optional.
Declaration
Objective-C
- (BOOL)healthInsuranceCardScannerViewControllerShouldRecognize: (nonnull SBSDKHealthInsuranceCardScannerViewController *)controller;
Swift
optional func healthInsuranceCardScannerViewControllerShouldRecognize(_ controller: SBSDKHealthInsuranceCardScannerViewController) -> Bool
Parameters
controller
The calling SBSDKHealthInsuranceCardScannerViewController.
Return Value
Return YES to run the recognition on the next video frame, NO otherwise. Can be used to pause the detection.