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 barcodeFormats.

Code Snippet

  • Objective-C
  • Swift
  1. DSBarcodeScannerConfig *config = [[DSBarcodeScannerConfig alloc] init];
    config.barcodeFormats = DSBarcodeFormatOneD | DSBarcodeFormatQRCode;
    
  2. let config = BarcodeScannerConfig()
    config.barcodeFormats = [.oneD, .qrCode]
    

Related APIs

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: