Skip to main content

HTMLDwebTorchElement

BFChainWebComponentHTMLDwebTorchElementLess than 1 minute

A WebComponent for accessing the torch device;
Inherits from HTMLElementopen in new window;

<dweb-torch></dweb-torch>

Properties

Methods

  • None

Events

No predefined events

Example

<body>
  <dweb-torch></dweb-torch>

  <script type="text/javascript">
    const dwebTorch = document.querySelector("dweb-torch");
    dwebTorch.toggleTorch();
  </script>
</body>

Cross-Platform Compatibility

Properties/Methods/EventsAndroidiOSDesktop-DevDesktop
pluginX
toggleTorchX
getTorchStateX

WebComponent

TorchPlugin

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