Skip to main content

HTMLDwebBarcodeScanningElement.getSupportedFormats()

BFChainWebComponentHTMLDwebBarcodeScanningElementgetSupportedFormatsLess than 1 minute

Gets the supported formats

HTMLDwebBarcodeScanningElement.getSupportedFormats()

Parameters

  • None

Return Value

Returns a Promise

Example

<body>
  <dweb-barcode-scanning></dweb-barcode-scanning>
  
  <button>getSupportedFormats</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.getSupportedFormats();
    })
  </script>
</body>

Platform Compatibility

Properties/Methods/EventsAndroidiOSDesktop-DevDesktop
getSupportedFormatsX

Plaoc WebComponent

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