SBSDKMRZScannerViewController

@interface SBSDKMRZScannerViewController : SBSDKBaseScannerViewController

A camera-enabled UIViewController subclass to scan machine-readable zones. This class cannot be instantiated from a storyboard directly, instead it is installing itself as a child view controller onto a given parent view controller.

  • The delegate. See SBSDKMRZScannerViewControllerDelegate protocol.

    Declaration

    Objective-C

    @property (nonatomic, weak, nullable) id<SBSDKMRZScannerViewControllerDelegate> delegate;

    Swift

    weak var delegate: SBSDKMRZScannerViewControllerDelegate? { get set }
  • Not available.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Not available.

    Declaration

    Objective-C

    + (nonnull instancetype)new;
  • Designated initializer. Installs the receiver as child view controller onto the parent view controllers view using its entire bounds area.

    Declaration

    Objective-C

    - (nullable instancetype)
        initWithParentViewController:
            (nonnull UIViewController *)parentViewController
                          parentView:(nullable UIView *)parentView
                            delegate:
                                (nonnull id<SBSDKMRZScannerViewControllerDelegate>)
                                    delegate;

    Swift

    init?(parentViewController: UIViewController, parentView: UIView?, delegate: SBSDKMRZScannerViewControllerDelegate)

    Parameters

    parentViewController

    The view controller the newly created instance is embedded into.

    parentView

    The view the newly created instance is embedded into. If nil the parentViewControllers view is used.

    delegate

    The delegate of the receiver. If nil and the parentViewController conforms to the SBSDKMRZScannerViewControllerDelegate protocol, the parentViewController is automatically set as delegate.

    Return Value

    New instance of SBSDKMRZScannerViewController.