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 }
  • The number of frames to be accumulated results when recognizing machine readable zones. Lower values are more inaccurate but faster, higher values are more accurate but slower. Values less than or equal 1 effectively turn accumulation off. The default value is 4.

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger resultAccumulationCount;

    Swift

    var resultAccumulationCount: UInt { 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 }