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.
Booleanindicating whether the event bubbles. The default is
Booleanindicating whether the event can be cancelled. The default is
Booleanindicating whether the event will trigger listeners outside of a shadow root (see
Event.composedfor more details). The default is
The definition of 'USBConnectionEvent()' in that specification.