MBFieldByFieldOverlayViewControllerDelegate
@protocol MBFieldByFieldOverlayViewControllerDelegate <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 MBFieldByFieldOverlayViewController *) fieldByFieldOverlayViewController;
Swift
func field(byFieldOverlayViewControllerWillClose fieldByFieldOverlayViewController: MBFieldByFieldOverlayViewController)
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 MBFieldByFieldOverlayViewController *) fieldByFieldOverlayViewController didFinishScanningWithElements: (nonnull NSArray<MBScanElement *> *)scanElements;
Swift
func field(_ fieldByFieldOverlayViewController: MBFieldByFieldOverlayViewController, didFinishScanningWith scanElements: [MBScanElement])
Parameters
fieldByFieldOverlayViewController
View Controller responsible for scanning
scanElements
Array of MBScanElement 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 MBFieldByFieldOverlayViewController *) fieldByFieldOverlayViewController;
Swift
optional func field(byFieldOverlayViewControllerWillPresentHelp fieldByFieldOverlayViewController: MBFieldByFieldOverlayViewController)
Parameters
fieldByFieldOverlayViewController
View Controller responsible for scanning
-
Outputs back each image processed by the SDK.
Declaration
Objective-C
- (void)fieldByFieldOverlayViewController: (nonnull MBFieldByFieldOverlayViewController *) fieldByFieldOverlayViewController didOutputCurrentImage:(nonnull MBImage *)currentImage;
Swift
optional func field(_ fieldByFieldOverlayViewController: MBFieldByFieldOverlayViewController, didOutputCurrentImage currentImage: MBImage)
Parameters
fieldByFieldOverlayViewController
View Controller responsible for scanning
currentImage
Current image being processed