Table of contents
Swift
Objective-C

Specify Barcode Formats

Set the supported barcode format is always the first step when configuring the BarcodeScanner. You can specify the barcode format via the method setBarcodeFormats.

Code Snippet

  • Java
  • Kotlin
  1. BarcodeScannerConfig config = new BarcodeScannerConfig(); config.setBarcodeFormats(EnumBarcodeFormat.BF_ONED | EnumBarcodeFormat.BF_QR_CODE); 
  2. val config = BarcodeScannerConfig().apply { barcodeFormats = EnumBarcodeFormat.BF_ONED or EnumBarcodeFormat.BF_QR_CODE } 

Related APIs

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: