getBarcodeScanner()

Use this factory function to get an instance of BarcodeScanner.

Syntax 

1import { getBarcodeScanner } from 'lightning/mobileCapabilities';
2getBarcodeScanner(): BarcodeScanner

Parameters 

None.

Returns 

An instance of BarcodeScanner.

Usage 

There are no parameters or options when creating an instance. Use the instance to perform scanning operations.

See Also