MBPPhotopayOverlayViewControllerDelegate
Objective-C
@protocol MBPPhotopayOverlayViewControllerDelegate <NSObject>
Swift
protocol MBPPhotopayOverlayViewControllerDelegate : 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 MBPRecognizerResult type
handle different types differently
Declaration
Objective-C
- (void)photopayOverlayViewControllerDidFinishScanning: (nonnull MBPPhotopayOverlayViewController *) photopayOverlayViewController state: (MBPRecognizerResultState) state;
Swift
func photopayOverlayViewControllerDidFinishScanning(_ photopayOverlayViewController: MBPPhotopayOverlayViewController, state: MBPRecognizerResultState)
Parameters
photopayOverlayViewController
photopayOverlayViewController 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)photopayOverlayViewControllerDidTapClose: (nonnull MBPPhotopayOverlayViewController *)photopayOverlayViewController;
Swift
func photopayOverlayViewControllerDidTapClose(_ photopayOverlayViewController: MBPPhotopayOverlayViewController)
Parameters
photopayOverlayViewController
Scanning view controller responsible for scanning
-
Called when Scanning library will display user’s custom help. This can happen when the user presses help button on scanning UI
Declaration
Objective-C
- (void)photopayOverlayViewControllerDidTapHelp: (nonnull MBPPhotopayOverlayViewController *)photopayOverlayViewController;
Swift
optional func photopayOverlayViewControllerDidTapHelp(_ photopayOverlayViewController: MBPPhotopayOverlayViewController)
Parameters
photopayOverlayViewController
photopayOverlayViewController Scanning view controller responsible for scanning