electron/docs/api/structures/usb-device.md
John Kleinschmidt 629c54ba36
feat: add support for WebUSB (#36289)
* feat: add support for WebUSB

* fixup for gn check

* fixup gn check on Windows

* Apply review feedback

Co-authored-by: Charles Kerr <charles@charleskerr.com>

* chore: address review feedback

* chore: removed unneeded code

* Migrate non-default ScopedObservation<> instantiations to ScopedObservationTraits<> in chrome/browser/

https://chromium-review.googlesource.com/c/chromium/src/+/4016595

Co-authored-by: Charles Kerr <charles@charleskerr.com>
2022-11-22 16:50:32 -05:00

1.2 KiB

USBDevice Object

  • deviceId string - Unique identifier for the device.
  • vendorId Integer - The USB vendor ID.
  • productId Integer - The USB product ID.
  • productName string (optional) - Name of the device.
  • serialNumber string (optional) - The USB device serial number.
  • manufacturerName string (optional) - The manufacturer name of the device.
  • usbVersionMajor Integer - The USB protocol major version supported by the device
  • usbVersionMinor Integer - The USB protocol minor version supported by the device
  • usbVersionSubminor Integer - The USB protocol subminor version supported by the device
  • deviceClass Integer - The device class for the communication interface supported by the device
  • deviceSubclass Integer - The device subclass for the communication interface supported by the device
  • deviceProtocol Integer - The device protocol for the communication interface supported by the device
  • deviceVersionMajor Integer - The major version number of the device as defined by the device manufacturer.
  • deviceVersionMinor Integer - The minor version number of the device as defined by the device manufacturer.
  • deviceVersionSubminor Integer - The subminor version number of the device as defined by the device manufacturer.