controlTransfer method
Future<TransferResultInfo>
controlTransfer(
- ConnectionHandle handle,
- ControlTransferInfo transferInfo
Performs a control transfer on the specified device.
Control transfers refer to either the device, an interface or an endpoint. Transfers to an interface or endpoint require the interface to be claimed.
|handle|: An open connection to the device.
Implementation
Future<TransferResultInfo> controlTransfer(
ConnectionHandle handle,
ControlTransferInfo transferInfo,
) async {
var $res = await promiseToFuture<$js.TransferResultInfo>(
$js.chrome.usb.controlTransfer(
handle.toJS,
transferInfo.toJS,
));
return TransferResultInfo.fromJS($res);
}