MBBaseOverlaySettings

Objective-C


@interface MBBaseOverlaySettings : MBOverlaySettings

Swift

class 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) 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) BOOL showStatusBar;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) 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, nullable) NSString *soundFilePath;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) BOOL displayCancelButton;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) BOOL displayTorchButton;

    Swift

    var displayTorchButton: Bool { get set }