Skip to main content

HTMLDwebBarcodeScanningElement.stopScanning()

BFChainWebComponentHTMLDwebBarcodeScanningElementstopScanningLess 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/EventsAndroidiOSDesktop-DevDesktop
stopScanningX

Plaoc WebComponent

Comments
  • Latest
  • Oldest
  • Hottest
Powered by Waline v2.15.7