Back to Content

USBDevice: deviceClass property

files/en-us/web/api/usbdevice/deviceclass/index.md

latest481 B
Original Source

{{APIRef("WebUSB API")}}{{SeeCompatTable}}{{SecureContext_Header}}{{AvailableInWorkers}}

The deviceClass read only property of the {{domxref("USBDevice")}} interface 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.

Value

A number.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}