MBOverlayViewController
Objective-C
@interface MBOverlayViewController : UIViewController
Swift
class MBOverlayViewController : UIViewController
Overlay View Controller is an abstract class for all overlay views placed on top View Controller.
It’s responsibility is to provide meaningful and useful interface for the user to interact with.
Typical actions which need to be allowed to the user are:
- intuitive and meaniningful way to guide the user through scanning process. This is usually done by presenting a “viewfinder” in which the user need to place the scanned object
- a way to cancel the scanining, typically with a “cancel” or “back” button
- a way to power on and off the light (i.e. “torch”) button
-
Overlay View’s delegate object. Responsible for sending messages to PhotoPay’s Camera View Controller
Declaration
Objective-C
@property (nonatomic, weak) UIViewController<MBOverlayContainerViewController> *_Nullable recognizerRunnerViewController;
Swift
weak var recognizerRunnerViewController: (any UIViewController & MBOverlayContainerViewController)? { get set }