Class USBConnectionEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalUSBConnectionEvent interface of the 'WebUSB API' is the event type passed to USB USB.Connect and USB.Disconnect events when the user agent detects that a new USB device has been connected or disconnected.
[Value("USBConnectionEvent")]
public class USBConnectionEvent : Event
- Inheritance
-
USBConnectionEvent
- Inherited Members
Remarks
Constructors
USBConnectionEvent()
public USBConnectionEvent()
USBConnectionEvent(string, USBConnectionEventInit)
NOTE
ExperimentalUSBConnectionEvent() constructor creates a new USBConnectionEvent object.This constructor is not typically used,
it is created by the browser in response to the connection and disconnection of a USB device.
public USBConnectionEvent(string type, USBConnectionEventInit eventInitDict)
Parameters
typestringeventInitDictUSBConnectionEventInit
Remarks
Properties
Device
NOTE
Experimentaldevice read-only property of the USBConnectionEvent interface returns a USBDevice object representing the device being connected or disconnected.
[Value("device")]
public USBDevice Device { get; }