ProtectedauthorisedProtectedknownProtectedlistenerProtectednativeThe addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Convenience method to get the first device with the specified VID and PID, or undefined if no such device is present.
Convenience method to get the device with the specified serial number, or undefined if no such device is present.
Gets all allowed Web USB devices which are connected
Promise containing an array of devices
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Requests a single Web USB device
Optionaloptions: USBDeviceRequestOptionsThe options to use when scanning
Promise containing the selected device
WebUSB class
Events
connectdisconnect