SBSDKUIMachineCodeScannerBehaviorConfiguration
@interface SBSDKUIMachineCodeScannerBehaviorConfiguration : NSObject
Configuration for the behavior of bar codes, QR codes and machine-readable zones scanners.
-
Specifies the way of barcode images generation or disables this generation at all. Use, if you want to receive a full sized image with barcodes. Defaults to SBSDKBarcodeImageGenerationTypeNone.
Declaration
Objective-C
@property (nonatomic) SBSDKBarcodeImageGenerationType barcodeImageGenerationType;
Swift
var barcodeImageGenerationType: SBSDKBarcodeImageGenerationType { get set }
-
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 successful barcode or 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 }
-
Additional parameters for tweaking the detection of barcodes.
Declaration
Objective-C
@property (nonatomic, strong, nonnull) SBSDKBarcodeAdditionalParameters *additionalParameters;
Swift
var additionalParameters: SBSDKBarcodeAdditionalParameters { get set }