Back to Content

USBDevice: selectConfiguration() method

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

latest545 B
Original Source

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

The selectConfiguration() method of the {{domxref("USBDevice")}} interface returns a {{jsxref("promise")}} that resolves when the specified configuration is selected.

Syntax

js-nolint
selectConfiguration(configurationValue)

Parameters

  • configurationValue
    • : The number of a device-specific configuration.

Return value

A {{jsxref("promise")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}