interruptTransfer method
Future<TransferResultInfo>
interruptTransfer(
- ConnectionHandle handle,
- GenericTransferInfo transferInfo
Performs an interrupt transfer on the specified device. |handle|: An open connection to the device. |transferInfo|: The transfer parameters.
Implementation
Future<TransferResultInfo> interruptTransfer(
ConnectionHandle handle,
GenericTransferInfo transferInfo,
) async {
var $res = await $js.chrome.usb
.interruptTransfer(
handle.toJS,
transferInfo.toJS,
)
.toDart;
return TransferResultInfo.fromJS($res);
}