Table of contents
Swift
Objective-C

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. BarcodeScannerConfig config = new BarcodeScannerConfig();
    config.setAutoZoomEnabled(true);
    
  2. val config = BarcodeScannerConfig().apply {
       isAutoZoomEnabled = true
    }
    

Related API

Beep

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

  • Java
  • Kotlin
  1. BarcodeScannerConfig config = new BarcodeScannerConfig();
    config.setBeepEnabled(true);
    
  2. val config = BarcodeScannerConfig().apply {
       isBeepEnabled = true
    }
    

Related API

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: