SBSDKMRZScannerViewController

@interface SBSDKMRZScannerViewController : SBSDKBaseScannerViewController

A camera-enabled UIViewController subclass to scan machine-readable zones.

  • The delegate. See SBSDKMRZScannerViewControllerDelegate protocol. Weak.

    Declaration

    Objective-C

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

    Swift

    weak var delegate: SBSDKMRZScannerViewControllerDelegate? { get set }
  • The maximum number of results to be accumulated when live-recognizing machine readable zones on sample buffers. This sets the second part of a requiredNumberOfEqualAccumulatedResults-of-maxNumberOfAccumulatedResults selector, e.g. 2 of 4 results must be equal. To make the selector less strict, select a higher value, e.g. 2 of 5 or even 2 of 6. Setting a value lower than requiredNumberOfEqualAccumulatedResults will throw an exception. Values less-than-or-equal to 0, will effectively turn off the result accumulation. The default value is 4.

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger maxNumberOfAccumulatedResults;

    Swift

    var maxNumberOfAccumulatedResults: UInt { get set }
  • The minimum number of equal results in the accumulator when live-recognizing machine readable zones on sample buffers. This sets the first part of a requiredNumberOfEqualAccumulatedResults-of-maxNumberOfAccumulatedResults selector, e.g. 2 of 4 results must be equal. To get less false positive results make the selector more strict by selecting a higher value, e.g. 3 of 4 or even 4 of 4. Setting a value higher than maxNumberOfAccumulatedResults will throw an exception. Values less-than-or-equal to 0, will effectively turn off the result accumulation. The default value is 2.

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger requiredNumberOfEqualAccumulatedResults;

    Swift

    var requiredNumberOfEqualAccumulatedResults: UInt { get set }
  • 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:(nonnull UIView *)parentView
                            delegate:
                                (nullable 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.

    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.