files/en-us/web/api/usbalternateinterface/index.md
{{APIRef("WebUSB API")}}{{SeeCompatTable}}{{SecureContext_Header}}{{AvailableInWorkers}}
The USBAlternateInterface interface of the WebUSB API provides information about a particular configuration of an interface provided by the USB device. An interface includes one or more alternate settings which can configure a set of endpoints based on the operating mode of the device.
USBAlternateInterface object which will be populated with information about the alternate interface of the provided USBInterface with the given alternate setting number.bAlternateSetting field of the interface descriptor defining this interface.bInterfaceClass field of the interface descriptor defining this interface. Standardized values for this field are defined by the USB Implementers Forum. A value of 0xFF indicates a vendor-defined interface.bInterfaceSubClass field of the interface descriptor defining this interface. The meaning of this value depends on the interfaceClass field.bInterfaceProtocol field of the interface descriptor defining this interface. The meaning of this value depends on the interfaceClass and interfaceSubclass fields.iInterface field of the interface descriptor defining this interface.USBEndpoint interface describing each of the endpoints that are part of this interface.{{Specifications}}
{{Compat}}