HIDDevice Type
Constructors
| Constructor |
Description
|
Full Usage:
HIDDevice(deviceId, name, vendorId, productId, collections, ?serialNumber, ?guid)
Parameters:
string
-
Unique identifier for the device.
name : string
-
Name of the device.
vendorId : int
-
The USB vendor ID.
productId : int
-
The USB product ID.
collections : Collections[]
-
an array of report formats. See MDN documentation for more.
?serialNumber : string
-
The USB device serial number.
?guid : string
-
Unique identifier for the HID interface. A device may have multiple HID interfaces.
Returns: HIDDevice
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.collections
|
an array of report formats. See MDN documentation for more. |
Full Usage:
this.deviceId
|
Unique identifier for the device. |
Full Usage:
this.guid
|
Unique identifier for the HID interface. A device may have multiple HID interfaces. |
Full Usage:
this.name
|
Name of the device. |
Full Usage:
this.productId
|
The USB product ID. |
Full Usage:
this.serialNumber
|
The USB device serial number. |
Full Usage:
this.vendorId
|
The USB vendor ID. |
fable-electron-docs-api