Static
scanScan barcodes using a pre-built, modal popup interface.
Scanning is active until one or more barcodes of the configured symbologies (see PopupConfiguration#symbologies) are detected. If a detection handler is provided (see PopupConfiguration#detectionHandler), scanning will continue until the detection handler returns a truthy value.
The popup scanner configuration
Promise that resolves into the detected barcodes or undefined (user cancellation)
Generated using TypeDoc
Pre-built modal scanning interface, intended for simple use cases that do not require a lot of customization.
For more advanced use cases and user interface customization, you can provide your own host element and integrate a BarcodeReader directly.
Remarks
Requires browser support for the <dialog> element, which is widely available since early 2022.