controlTransferIn method

  1. @override
Future<USBInTransferResult> controlTransferIn(
  1. dynamic device,
  2. SetupParam setup, {
  3. int? length,
})
override

Waits for a specified control transfer from the device. Returns a Future resolved with the transfer data and status.

Implementation

@override
Future<USBInTransferResult> controlTransferIn(
    dynamic device, SetupParam setup,
    {int? length}) {
  return methodChannel.invokeMethod<bool>('controlTransferIn', [
    device,
    setup,
    length
  ]).then<USBInTransferResult>((dynamic result) => result);
}