MBCViewControllerFactory

Objective-C


@interface MBCViewControllerFactory : NSObject

Swift

class MBCViewControllerFactory : NSObject

Factory class containing static methods for creating camera view controllers. Camera view controllers created this way will be managed internally by the SDK, and input frames will be processed.

Creating Scanning view controllers

  • Method creates a camera view controller which is responsible for displaying the camera input on the phone screen.

    With this method you can specify custom overlay view to be used on the camera display. The only requirement for the overlay view is that it’s a subclass of MBCOverlayViewController

    Declaration

    Objective-C

    + (nullable UIViewController<MBCRecognizerRunnerViewController> *)
        recognizerRunnerViewControllerWithOverlayViewController:
            (nonnull MBCOverlayViewController *)overlayViewController;

    Swift

    class func recognizerRunnerViewController(withOverlayViewController overlayViewController: MBCOverlayViewController) -> (UIViewController & MBCRecognizerRunnerViewController)?

    Parameters

    overlayViewController

    View Controller which is presented on top of scanning view controller as a child.

    Return Value

    Scanning view controller fully initialized for presenting on screen.