SBSDKUIMRZScannerBehaviorConfiguration

@interface SBSDKUIMRZScannerBehaviorConfiguration : NSObject

Configuration for the behavior of the machine readable zone scanner.

  • Whether flash is toggled on or off.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isFlashEnabled) BOOL flashEnabled;

    Swift

    var isFlashEnabled: Bool { get set }
  • Whether scanner screen should make a sound on MRZ detection.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isSuccessBeepEnabled) BOOL successBeepEnabled;

    Swift

    var isSuccessBeepEnabled: Bool { get set }
  • Time in seconds until the screen is automatically cancelled. Set to 0 to disable automatic cancellation. Defaults to 0 (disabled).

    Declaration

    Objective-C

    @property (nonatomic) NSTimeInterval autoCancelTimeout;

    Swift

    var autoCancelTimeout: TimeInterval { get set }