setInterfaceAlternateSetting method
Future<void>
setInterfaceAlternateSetting(
- ConnectionHandle handle,
- int interfaceNumber,
- int alternateSetting
Selects an alternate setting on a previously claimed interface. |handle|: An open connection to the device where this interface has been claimed. |interfaceNumber|: The interface to configure. |alternateSetting|: The alternate setting to configure.
Implementation
Future<void> setInterfaceAlternateSetting(
ConnectionHandle handle,
int interfaceNumber,
int alternateSetting,
) async {
await promiseToFuture<void>($js.chrome.usb.setInterfaceAlternateSetting(
handle.toJS,
interfaceNumber,
alternateSetting,
));
}