MBOcrRecognizerRunnerViewControllerDelegate
Objective-C
@protocol MBOcrRecognizerRunnerViewControllerDelegate <NSObject>
Swift
protocol MBOcrRecognizerRunnerViewControllerDelegate : NSObjectProtocol
Protocol for obtaining ocr results
-
Called when scanning library has MBOcrLayout 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<MBRecognizerRunnerViewController> *) recognizerRunnerViewController didObtainOcrResult:(nonnull MBOcrLayout *)ocrResult withResultName:(nonnull NSString *)resultName;
Swift
func recognizerRunnerViewController(_ recognizerRunnerViewController: any UIViewController & MBRecognizerRunnerViewController, didObtainOcrResult ocrResult: MBOcrLayout, withResultName resultName: String)