HTMLDeviceElement
WebComponentHTMLDeviceElementLess than 1 minute
An HTMLElement for accessing the device plugin;
Inherits from HTMLElement;
<dweb-device></dweb-device>
Properties
plugin
A DevicePlugin object;
Methods
HTMLDeviceElement.getUUID()
Gets the device identifier;
Essentially calls DevicePlugin.getUUID()
Returns a Promise that resolves to a ResponseUUIDData object
Events
- None
Example
<body>
<dweb-device></dweb-device>
<script type="text/javascript">
const dwebDevice = document.querySelector("dweb-device")
const uuid = dwebDevice.getUUID();
</script>
</body>
Cross-Platform Compatibility
Properties/Methods/Events | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
plugin | ✅ | ✅ | ✅ | X |
getUUID | ✅ | ✅ | ✅ | X |
Related Links
Powered by Waline v2.15.7