releaseInterface method

Future<void> releaseInterface(
  1. ConnectionHandle handle,
  2. int interfaceNumber
)

Releases a claimed interface. |handle|: An open connection to the device. |interfaceNumber|: The interface to be released.

Implementation

Future<void> releaseInterface(
  ConnectionHandle handle,
  int interfaceNumber,
) async {
  await promiseToFuture<void>($js.chrome.usb.releaseInterface(
    handle.toJS,
    interfaceNumber,
  ));
}