Skip to main content

BarcodeScannerConfiguration

Provides the possibility to change some behaviours to adopt it to your needs.

Properties

beepOnSuccess?

optional beepOnSuccess: boolean;

If set to true, the device will play a beep sound if barcode gets detected. Defaults to false.


vibrateOnSuccess?

optional vibrateOnSuccess: boolean;

If set to true, the device will vibrate if barcode gets detected. Defaults to true.


bottomImage?

optional bottomImage: string;

Possibility of displaying an image below the detection frame.


codeFormats?

optional codeFormats: BarcodeFormat[];

A list of barcode formats you want the scanner to detect. Defaults to a list containing all available formats. If you set it to a list containing only the formats you need to detect, the detection performance can be improved.

See

BarcodeFormat


detectionHintTitle?

optional detectionHintTitle: string;

The text that will be displayed above the detection frame.