Table of Contents

Class USBConnectionEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The USBConnectionEvent 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
Experimental
The USBConnectionEvent() 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

type string
eventInitDict USBConnectionEventInit

Remarks

Properties

Device

NOTE
Experimental
The device read-only property of the USBConnectionEvent interface returns a USBDevice object representing the device being connected or disconnected.
[Value("device")]
public USBDevice Device { get; }

Property Value

USBDevice

A USBDevice object.

Remarks