At the time of writing this blog post, around 10 different types of barcodes are supported.
Below source code demonstrate how simple it is to use in LWC.
- import lightning/mobileCapabilities
- initiate scanner variable using method getBarcodeScanner()
- set configuration suggesting which barcodes are supported
- use begineCapture() method top launch mobile camera
- read the result or handle error