MBCBlinkCardOverlayViewControllerDelegate
Objective-C
@protocol MBCBlinkCardOverlayViewControllerDelegate <NSObject>
Swift
protocol MBCBlinkCardOverlayViewControllerDelegate : NSObjectProtocol
Protocol for obtaining scanning results
-
Scanning library did output scanning results
Depending on how you want to treat the result, you might want to dismiss the scanningViewController here.
This method is the default way for getting access to results of scanning.
Note:
- there may be 0, 1, or more than one scanning results.
- each scanning result belongs to a common MBCRecognizerResult type
handle different types differently
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)blinkCardOverlayViewControllerDidFinishScanning: (nonnull MBCBlinkCardOverlayViewController *) blinkCardOverlayViewController state: (MBCRecognizerResultState) state;
Swift
func blinkCardOverlayViewControllerDidFinishScanning(_ blinkCardOverlayViewController: MBCBlinkCardOverlayViewController, state: MBCRecognizerResultState)
Parameters
blinkCardOverlayViewController
documentOverlayViewController Scanning view controller responsible for scanning
state
state of scanning
-
Scanning library was closed, usually by the user pressing close button and cancelling the scan
Declaration
Objective-C
- (void)blinkCardOverlayViewControllerDidTapClose: (nonnull MBCBlinkCardOverlayViewController *)blinkCardOverlayViewController;
Swift
func blinkCardOverlayViewControllerDidTapClose(_ blinkCardOverlayViewController: MBCBlinkCardOverlayViewController)
Parameters
blinkCardOverlayViewController
Scanning view controller responsible for scanning
-
Called when scanning library finished scanning first side of the document
Declaration
Objective-C
- (void)blinkCardOverlayViewControllerDidFinishScanningFirstSide: (nonnull MBCBlinkCardOverlayViewController *)blinkCardOverlayViewController;
Swift
optional func blinkCardOverlayViewControllerDidFinishScanningFirstSide(_ blinkCardOverlayViewController: MBCBlinkCardOverlayViewController)
Parameters
blinkCardOverlayViewController
blinkCardOverlayViewController Scanning view controller responsible for scanning
-
Called when scanning library edit screen values are confirmed
Declaration
Objective-C
- (void) blinkCardOverlayViewControllerDidFinishEditing: (nonnull MBCBlinkCardOverlayViewController *) blinkCardOverlayViewController editResult: (nonnull MBCBlinkCardEditResult *) editResult;
Swift
optional func blinkCardOverlayViewControllerDidFinishEditing(_ blinkCardOverlayViewController: MBCBlinkCardOverlayViewController, editResult: MBCBlinkCardEditResult)
Parameters
blinkCardOverlayViewController
BlinkCardOverlayViewController Scanning view controller responsible for scanning and showing edit view controller