MBCOcrRecognizerRunnerViewControllerDelegate
Objective-C
@protocol MBCOcrRecognizerRunnerViewControllerDelegate <NSObject>
Swift
protocol MBCOcrRecognizerRunnerViewControllerDelegate : NSObjectProtocol
Protocol for obtaining ocr results
-
Called when scanning library has MBCOcrLayout ready to be displayed on UI. NOTE: This method is called on background processing thread. Make sure that you dispatch all your UI API calls to main thread.
Declaration
Objective-C
- (void)recognizerRunnerViewController: (nonnull UIViewController<MBCRecognizerRunnerViewController> *) recognizerRunnerViewController didObtainOcrResult:(nonnull MBCOcrLayout *)ocrResult withResultName:(nonnull NSString *)resultName;
Swift
func recognizerRunnerViewController(_ recognizerRunnerViewController: any UIViewController & MBCRecognizerRunnerViewController, didObtainOcrResult ocrResult: MBCOcrLayout, withResultName resultName: String)