SBSDKCheckRecognizerViewControllerDelegate
@protocol SBSDKCheckRecognizerViewControllerDelegate <NSObject>
The delegation protocol for the SBSDKCheckRecognizerViewController
class.
-
Informs the delegate, that the check scanner has successfully detected and recognized a check.
Declaration
Objective-C
- (void)checkRecognizerViewController: (nonnull SBSDKCheckRecognizerViewController *)controller didRecognizeCheck: (nonnull SBSDKCheckRecognizerResult *)result;
Swift
func checkRecognizerViewController(_ controller: SBSDKCheckRecognizerViewController, didRecognizeCheck result: SBSDKCheckRecognizerResult)
Parameters
controller
The check scanner viewcontroller which recognized the check.
result
The check scanner result that have been recognized.
-
Optional. Informs the delegate, that the check scanner has changed its detection/recognition state.
Declaration
Objective-C
- (void)checkRecognizerViewController: (nonnull SBSDKCheckRecognizerViewController *)controller didChangeState:(SBSDKCheckRecognizerState)state;
Swift
optional func checkRecognizerViewController(_ controller: SBSDKCheckRecognizerViewController, didChange state: SBSDKCheckRecognizerState)
Parameters
controller
The check scanner viewcontroller that changed its state.
state
The current state of the check scanner.
-
Asks the delegate if the check recognizer should scan the next video frame. Optional.
Declaration
Objective-C
- (BOOL)checkRecognizerViewControllerShouldRecognize: (nonnull SBSDKCheckRecognizerViewController *)controller;
Swift
optional func checkRecognizerViewControllerShouldRecognize(_ controller: SBSDKCheckRecognizerViewController) -> Bool
Parameters
controller
The calling SBSDKCheckRecognizerViewController.
Return Value
Return YES to run the recognition on the next video frame, NO otherwise. Can be used to pause the detection.