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
- Java
- Kotlin
BarcodeScannerConfig config = new BarcodeScannerConfig(); config.setAutoZoomEnabled(true);
val config = BarcodeScannerConfig().apply { isAutoZoomEnabled = true }
Related API
Beep
Let the app to trigger a beep sound when a barcode is decoded.
- Java
- Kotlin
BarcodeScannerConfig config = new BarcodeScannerConfig(); config.setBeepEnabled(true);
val config = BarcodeScannerConfig().apply { isBeepEnabled = true }
Related API