Skip to main content

HTMLBluetoothElement

BFChainWebComponentHTMLBluetoothElementLess than 1 minute

HTMLBluetoothElement is a WebComponent related to bluetooth.
Inherits from HTMLElementopen in new window;

<dweb-bluetooth></dweb-bluetooth>

Properties

Methods

Events

Supports any events, no predefined events;

Example

<body>

  <dweb-bluetooth></dweb-bluetooth>

  <button>open</button>

  <script type="module">

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

</body>

Platform Compatibility

Properties/Methods/EventsAndroidiOSDesktop-DevDesktop
pluginX
openX
closeX
requestAndConnectDeviceX

Plaoc Webcomponent

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