Back to Content

USBDevice: releaseInterface() method

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

latest562 B
Original Source

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

The releaseInterface() method of the {{domxref("USBDevice")}} interface returns a {{jsxref("promise")}} that resolves when a claimed interface is released from exclusive access.

Syntax

js-nolint
releaseInterface(interfaceNumber)

Parameters

  • interfaceNumber
    • : The device-specific index of the currently-claimed interface.

Return value

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}