HTMLDwebNetworkElement
WebComponentHTMLDwebNetworkElementLess than 1 minute
A WebComponent for accessing network related functions;
 Inherits from HTMLElement;
<dweb-network></dweb-network>
Properties
- plugin - A NetworkPlugin object; 
- getStatus - Gets the network status; 
 The NetworkPlugin.getStatus() method;
- onLine - Checks if network is online; 
 The NetworkPlugin.onLine() method;
Methods
- None
Events
No predefined events
Example
<body>
  <dweb-network></dweb-network>
  
  <script type="text/javascript">
    const dwebNetwork = document.querySelector("dweb-network");
    dwebNetwork.onLine();
  </script>
</body>
Cross-Platform Compatibility
| Properties/Methods/Events | Android | iOS | Desktop-Dev | Desktop | 
|---|---|---|---|---|
| plugin | ✅ | ✅ | ✅ | X | 
| getStatus | ✅ | ✅ | ✅ | X | 
| onLine | ✅ | ✅ | ✅ | X | 
Related Links
 Powered by  Waline  v2.15.7