HTMLDwebBarcodeScanningElement.stopScanning()
WebComponentHTMLDwebBarcodeScanningElementstopScanningLess than 1 minute
Stops scanning
HTMLDwebBarcodeScanningElement.stopScanning()
Parameters
- None
Return Value
void
Example
<body>
<dweb-barcode-scanning></dweb-barcode-scanning>
<button>stop</button>
<script type="module">
import "@plaoc/plugins"
const barcodeScanner = document.querySelector("dweb-barcode-scanning")!
const btn = document.querySelector('button');
btn.addEventListener('click', async () => {
barcodeScanner.stopScanning();
})
</script>
</body>
Platform Compatibility
Properties/Methods/Events | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
stopScanning | ✅ | ✅ | ✅ | X |
Related Links
Powered by Waline v2.15.7