Class HIDConnectionEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
Experimental The
HIDConnectionEvent interface of the
WebHID API represents HID connection events, and is the event type passed to HIDconnect and HIDdisconnect event handlers when a device's connection state changes.
[Value("HIDConnectionEvent")]
public class HIDConnectionEvent : Event
- Inheritance
-
HIDConnectionEvent
- Inherited Members
-
Constructors
HIDConnectionEvent()
public HIDConnectionEvent()
HIDConnectionEvent(string, HIDConnectionEventInit)
NOTE
Experimental The
HIDConnectionEvent() constructor creates a new
HIDConnectionEvent object. Typically this constructor is not used as events are created when a device's connection state changes.
public HIDConnectionEvent(string type, HIDConnectionEventInit eventInitDict)
Parameters
type string
eventInitDict HIDConnectionEventInit
Properties
Device
NOTE
Experimental The
device read-only property of the
HIDConnectionEvent interface returns the
HIDDevice associated with this connection event.
[Value("device")]
public HIDDevice Device { get; }
Property Value
- HIDDevice
A HIDDevice.