Skip to content

Latest commit

 

History

History
69 lines (55 loc) · 1.57 KB

File metadata and controls

69 lines (55 loc) · 1.57 KB
layout default-layout
title Additional Settings for BarcodeScanner - Dynamsoft Barcode Reader for Android
description Add additional settings for BarcodeScanner on Android platform. Including auto-zoom, beep, etc.
keywords BarcodeScanner, scanner, Android, auto-zoom, zoom, beep
needAutoGenerateSidebar true
needGenerateH3Content true
noTitleIndex true

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

Auto Zoom

>- Java >- Kotlin > >1. ```java BarcodeScannerConfig config = new BarcodeScannerConfig(); config.setAutoZoomEnabled(true); ``` 2. ```kotlin val config = BarcodeScannerConfig().apply { isAutoZoomEnabled = true } ```

Related API

  • [setAutoZoomEnabled]({{ site.dbr_android_api }}barcode-scanner/barcode-scanner-config.html#setautozoomenabled)

Beep

Let the app to trigger a beep sound when a barcode is decoded.

>- Java >- Kotlin > >1. ```java BarcodeScannerConfig config = new BarcodeScannerConfig(); config.setBeepEnabled(true); ``` 2. ```kotlin val config = BarcodeScannerConfig().apply { isBeepEnabled = true } ```

Related API

  • [setBeepEnabled]({{ site.dbr_android_api }}barcode-scanner/barcode-scanner-config.html#setbeepenabled)