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

  • Objective-C
  • Swift
  1. DSBarcodeScannerConfig *config = [[DSBarcodeScannerConfig alloc] init];
    config.isAutoZoomEnabled = true;
    
  2. 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
  1. DSBarcodeScannerConfig *config = [[DSBarcodeScannerConfig alloc] init];
    config.isBeepEnabled = true;
    
  2. let config = BarcodeScannerConfig()
    config.isBeepEnabled = true
    

Related API

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: