SBSDKMedicalCertificateScannerViewControllerDelegate
@protocol SBSDKMedicalCertificateScannerViewControllerDelegate <NSObject>
The delegation protocol for the SBSDKMedicalCertificateScannerViewController
class.
-
Informs the delegate, that the medical certificate scanner has successfully detected and recognized a medical certificate.
Declaration
Objective-C
- (void)medicalCertificateScannerViewController: (nonnull SBSDKMedicalCertificateScannerViewController *)controller didRecognizeMedicalCertificate: (nonnull SBSDKMedicalCertificateRecognizerResult *)result;
Swift
func medicalCertificateScannerViewController(_ controller: SBSDKMedicalCertificateScannerViewController, didRecognizeMedicalCertificate result: SBSDKMedicalCertificateRecognizerResult)
Parameters
controller
The medical scanner view controller which recognized the medical certificate.
result
The medical scanner result that have been recognized.
-
Asks the delegate if the medical certificate scanner should scan the next video frame.
Declaration
Objective-C
- (BOOL)medicalCertificateScannerViewControllerShouldRecognize: (nonnull SBSDKMedicalCertificateScannerViewController *)controller;
Swift
optional func medicalCertificateScannerViewControllerShouldRecognize(_ controller: SBSDKMedicalCertificateScannerViewController) -> Bool
Parameters
controller
The medical scanner view controller that will receive the video frame.
Return Value
Return YES to run the recognition on the next video frame, NO otherwise. Can be used to pause the detection.
-
Informs the delegate, that the medical certificate scanner has changed its detection/recognition state.
Declaration
Objective-C
- (void)medicalCertificateScannerViewController: (nonnull SBSDKMedicalCertificateScannerViewController *)controller didChangeState: (SBSDKMedicalCertificateScannerState)state;
Swift
optional func medicalCertificateScannerViewController(_ controller: SBSDKMedicalCertificateScannerViewController, didChange state: SBSDKMedicalCertificateScannerState)
Parameters
controller
The medical scanner view controller that changed its state.
state
The current state of the medical certificate scanner.