Firefox Tomorrow

web api interface

USBDevice

View on MDN ↗

Limited availabilitySecure contextAvailable in workers

The USBDevice interface of the WebUSB API provides access to metadata about a paired USB device and methods for controlling it.

Instance properties

  • configuration Read only Experimental
    • : A USBConfiguration object for the currently selected interface for a paired USB device.
  • configurations Read only Experimental
    • : An Array of device-specific interfaces for controlling a paired USB device.
  • deviceClass Read only Experimental
    • : One of three properties that identify USB devices for the purpose of loading a USB driver that will work with that device. The other two properties are USBDevice.deviceSubclass and USBDevice.deviceProtocol.
  • deviceProtocol Read only Experimental
    • : One of three properties that identify USB devices for the purpose of loading a USB driver that will work with that device. The other two properties are USBDevice.deviceClass and USBDevice.deviceSubclass.
  • deviceSubclass Read only Experimental
    • : One of three properties that identify USB devices for the purpose of loading a USB driver that will work with that device. The other two properties are USBDevice.deviceClass and USBDevice.deviceProtocol.
  • deviceVersionMajor Read only Experimental
    • : The major version number of the device in a semantic versioning scheme.
  • deviceVersionMinor Read only Experimental
    • : The minor version number of the device in a semantic versioning scheme.
  • deviceVersionSubminor Read only Experimental
    • : The patch version number of the device in a semantic versioning scheme.
  • manufacturerName Read only Experimental
    • : The name of the organization that manufactured the USB device.
  • opened Read only Experimental
    • : Indicates whether a session has been started with a paired USB device.
  • productId Read only Experimental
    • : The manufacturer-defined code that identifies a USB device.
  • productName Read only Experimental
    • : The manufacturer-defined name that identifies a USB device.
  • serialNumber Read only Experimental
    • : The manufacturer-defined serial number for the specific USB device.
  • usbVersionMajor Read only Experimental
    • : One of three properties that declare the USB protocol version supported by the device. The other two properties are USBDevice.usbVersionMinor and USBDevice.usbVersionSubminor.
  • usbVersionMinor Read only Experimental
    • : One of three properties that declare the USB protocol version supported by the device. The other two properties are USBDevice.usbVersionMajor and USBDevice.usbVersionSubminor.
  • usbVersionSubminor Read only Experimental
    • : One of three properties that declare the USB protocol version supported by the device. The other two properties are USBDevice.usbVersionMajor and USBDevice.usbVersionMinor.
  • vendorId Read only Experimental
    • : The official usb.org-assigned vendor ID.

Instance methods

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.