SBSDKUITextDataScannerViewControllerDelegate
@protocol
SBSDKUITextDataScannerViewControllerDelegate <SBSDKUIViewControllerDelegate>
Delegate protocol for ‘SBSDKUITextDataScannerViewController’.
-
Informs the delegate that the text has been recognized and validated.
Declaration
Objective-C
- (void)textLineRecognizerViewController: (nonnull SBSDKUITextDataScannerViewController *)viewController didFinishStep: (nonnull SBSDKUITextDataScannerStep *)step withResult: (nonnull SBSDKUITextDataScannerStepResult *) result;
Swift
func textLineRecognizerViewController(_ viewController: SBSDKUITextDataScannerViewController, didFinish step: SBSDKUITextDataScannerStep, with result: SBSDKUITextDataScannerStepResult)
Parameters
viewController
The text data scanner view controller instance.
step
The step that this result was recognized for.
result
An object, that contains recognized text.
-
Optional: Informs the delegate that the ‘SBSDKUITextDataScannerViewController’ has been cancelled and dismissed.
Declaration
Objective-C
- (void)textLineRecognizerViewControllerDidCancel: (nonnull SBSDKUITextDataScannerViewController *)viewController;
Swift
optional func textLineRecognizerViewControllerDidCancel(_ viewController: SBSDKUITextDataScannerViewController)
Parameters
viewController
The ‘SBSDKUITextDataScannerViewController’ that did dismiss.