Additional Settings for BarcodeScanner
The article will show you how to add additional settings for BarcodeScanner.
Auto Zoom Feature
Enable the camera to zoom-in automatically when:
- The barcodes are too small.
- The barcodes are farway from the camera.
Auto Zoom
- Objective-C
- Swift
DSBarcodeScannerConfig *config = [[DSBarcodeScannerConfig alloc] init]; config.isAutoZoomEnabled = true;
let config = BarcodeScannerConfig() config.isAutoZoomEnabled = true
Related API
Beep
Let the app to trigger a beep sound when a barcode is decoded.
- Objective-C
- Swift
DSBarcodeScannerConfig *config = [[DSBarcodeScannerConfig alloc] init]; config.isBeepEnabled = true;
let config = BarcodeScannerConfig() config.isBeepEnabled = true
Related API