MBIFieldByFieldOverlayViewControllerDelegate
@protocol MBIFieldByFieldOverlayViewControllerDelegate <NSObject>
Protocol for observing important events with scanning
-
Called when Overlay will close. This can happen if the user pressed close button
Perform here your VC dismiss logic.
Declaration
Objective-C
- (void)fieldByFieldOverlayViewControllerWillClose: (nonnull MBIFieldByFieldOverlayViewController *) fieldByFieldOverlayViewController;
Swift
func field(byFieldOverlayViewControllerWillClose fieldByFieldOverlayViewController: MBIFieldByFieldOverlayViewController)
Parameters
fieldByFieldOverlayViewController
View Controller responsible for scanning
-
Called when Scanning finishes and Overlay will dissapear.
Perform here your VC dismiss logic, as well as result handling
Declaration
Objective-C
- (void)fieldByFieldOverlayViewController: (nonnull MBIFieldByFieldOverlayViewController *) fieldByFieldOverlayViewController didFinishScanningWithElements: (nonnull NSArray<MBIScanElement *> *)scanElements;
Swift
func field(_ fieldByFieldOverlayViewController: MBIFieldByFieldOverlayViewController, didFinishScanningWith scanElements: [MBIScanElement])
Parameters
fieldByFieldOverlayViewController
View Controller responsible for scanning
scanElements
Array of MBIScanElement objects with all scanning results
-
Called when user pressed the help button on the overlay.
Perform logic showing your help instructions here.
Declaration
Objective-C
- (void)fieldByFieldOverlayViewControllerWillPresentHelp: (nonnull MBIFieldByFieldOverlayViewController *) fieldByFieldOverlayViewController;
Swift
optional func field(byFieldOverlayViewControllerWillPresentHelp fieldByFieldOverlayViewController: MBIFieldByFieldOverlayViewController)
Parameters
fieldByFieldOverlayViewController
View Controller responsible for scanning
-
Outputs back each image processed by the SDK.
Declaration
Objective-C
- (void)fieldByFieldOverlayViewController: (nonnull MBIFieldByFieldOverlayViewController *) fieldByFieldOverlayViewController didOutputCurrentImage:(nonnull MBIImage *)currentImage;
Swift
optional func field(_ fieldByFieldOverlayViewController: MBIFieldByFieldOverlayViewController, didOutputCurrentImage currentImage: MBIImage)
Parameters
fieldByFieldOverlayViewController
View Controller responsible for scanning
currentImage
Current image being processed