USBConfiguration.USBConfiguration()

Draft
This page is not complete.

Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The USBConfiguration() constructor creates a new USBConfiguration object which contains information about the configuration on the provided USBDevice with the given configuration value.

Syntax

var USBConfiguration = new USBConfiguration(device, configurationValue)

Parameters

device
Specifies the USBDevice you want to configure.
configurationValue
Specifies the configuration descriptor you want to read. This is an unsigned integer in the range 0 to 255.

Specifications

Specification Status Comment
Unknown
The definition of 'USBConfiguration' in that specification.
Unknown Initial definition.

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
USBConfiguration() constructor
Experimental
Chrome Full support 61Edge Full support 79Firefox No support NoIE No support NoOpera Full support 48Safari No support NoWebView Android No support NoChrome Android Full support 61Firefox Android No support NoOpera Android Full support 45Safari iOS No support NoSamsung Internet Android Full support 8.0

Legend

Full support
Full support
No support
No support
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.