Skip to main content

HTMLDwebBarcodeScanningElement.startScanning()

BFChainWebComponentHTMLDwebBarcodeScanningElementstartScanningLess than 1 minute

Starts barcode scanning

HTMLDwebBarcodeScanningElement.startScanning() 

Parameters

  • None

Return Value

Returns a Promise that resolves to a ScanResult object

Example

<body>

  <dweb-barcode-scanning></dweb-barcode-scanning>
  
  <button>scanner</button>

  <script type="module">

    import "@plaoc/plugins"
    
    const barcodeScanner = document.querySelector("dweb-barcode-scanning")!
    
    const btn = document.querySelector('button');
    
    btn.addEventListener('click', async () => {
    
      const res = await barcodeScanner.startScanning();
      
    })
    
  </script>
  
</body>

Platform Compatibility

Properties/Methods/EventsAndroidiOSDesktop-DevDesktop
startScanningX

Plaoc WebComponent

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