USBConnectionEvent() constructor creates a new
USBConnectionEvent object which is passed to
USB.ondisconnect. This constructor is not typically used, it is created by the browser in response to the connection and disconnection of a USB device.
new USBConnectionEvent(type, USBConnectionEventInit);
stringrepresenting the name of the event. One of:
An object including the following:
An object representing the USB device being connected or disconnected.
A boolean value indicating whether the event bubbles. The default is
A boolean value indicating whether the event can be cancelled. The default is
A boolean value indicating whether the event will trigger listeners outside of a shadow root (see
Event.composedfor more details). The default is
|WebUSB API |
BCD tables only load in the browser