BarcodeScanner Constants

The barcodeTypes constant is available as a property on an instance of BarcodeScanner.

barcodeTypes 

An object enumerating the barcode symbologies supported by BarcodeScanner.

Barcode Symbology StandardBarcodeScanner Type (barcodeTypes)
Code 128CODE_128
Code 39CODE_39
Code 93CODE_93
Data MatrixDATA_MATRIX
EAN-13 / GTIN-13EAN_13
EAN-8 / GTIN-8EAN_8
Interleaved 2 of 5ITF
PDF417PDF_417
QR-CodeQR
UPC-A / GTIN-12UPC_A
UPC-E / GTIN-12UPC_E

Usage 

Use the barcodeTypes constant when creating a BarcodeScannerOptions object. Call beginCapture(options) (Legacy) with that object to start a scanning session.

const myScanner = getBarcodeScanner();
const scanningOptions = {
  barcodeTypes: [
    // Add expected barcode types here
    // See Supported Barcode Types for list
    myScanner.barcodeTypes.QR,
  ],
};

Release Preview

This release is in preview. Features described here don't become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can't guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.