Instance properties
None.
Instance methods
USB.getDevices()-
Returns a
Promisethat resolves with an array ofUSBDeviceobjects for paired attached devices. USB.requestDevice()-
Returns a
Promisethat resolves with an instance ofUSBDeviceif the specified device is found. Calling this function triggers the user agent's pairing flow.
Events
connect-
Fired whenever a previously paired device is connected.
disconnect-
Fired whenever a paired device is disconnected.
Specifications
| Specification |
|---|
| WebUSB API # usb |