SBSDKGenericTextLineRecognizerViewControllerDelegate
@protocol SBSDKGenericTextLineRecognizerViewControllerDelegate <NSObject>
The delegation protocol for ‘SBSDKGenericTextLineRecognizerViewController’.
-
Informs the delegate that text line(s) has been recognized and validated and passes the result.
Declaration
Objective-C
- (void)textLineRecognizerViewController: (nonnull SBSDKGenericTextLineRecognizerViewController *)controller didValidateResult: (nonnull SBSDKGenericTextLineRecognizerResult *) result;
Swift
func textLineRecognizerViewController(_ controller: SBSDKGenericTextLineRecognizerViewController, didValidate result: SBSDKGenericTextLineRecognizerResult)
Parameters
controller
The SBSDKGenericTextLineRecognizerViewController that has recognized and validated the text line(s).
result
The result of the recognition.
-
Asks the delegate whether the next video frame should be recognized or not. Optional. Use to skip frames or pause recognition for a while.
Declaration
Objective-C
- (BOOL)textLineRecognizerViewControllerShouldRecognize: (nonnull SBSDKGenericTextLineRecognizerViewController *)controller;
Swift
optional func textLineRecognizerViewControllerShouldRecognize(_ controller: SBSDKGenericTextLineRecognizerViewController) -> Bool
Parameters
controller
The SBSDKGenericTextLineRecognizerViewController that wants to recognize the video frame.
Return Value
YES, if you want to recognize the next video frame, NO otherwise.