MBBaseOverlaySettings


@interface MBBaseOverlaySettings : MBOverlaySettings

Settings class containing UI information

  • If YES, Overlay View Controller will be autorotated independently of ScanningViewController.

    Default: NO.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        BOOL autorotateOverlay;

    Swift

    var autorotateOverlay: Bool { get set }
  • If YES, default camera overlay will display Status bar. Usually, if camera is displayed inside Navigation View Controler, this is reasonable to set to YES.

    Default: YES on iPhones with notch, NO otherwise.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) BOOL showStatusBar;

    Swift

    var showStatusBar: Bool { get set }
  • Default: UIInterfaceOrientationMaskPortrait

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        UIInterfaceOrientationMask supportedOrientations;

    Swift

    var supportedOrientations: UIInterfaceOrientationMask { get set }
  • Full path to the sound file which is played when the valid result is scanned.

    Default: `[bundle pathForResource:@“PPbeep” ofType:@“wav”];

    Declaration

    Objective-C

    @property (nonatomic, strong, readwrite, nullable) NSString *soundFilePath;

    Swift

    var soundFilePath: String? { get set }
  • Default: YES.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        BOOL displayCancelButton;

    Swift

    var displayCancelButton: Bool { get set }
  • Default: YES.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        BOOL displayTorchButton;

    Swift

    var displayTorchButton: Bool { get set }