transferIn method

  1. @override
Future<USBInTransferResult> transferIn(
  1. dynamic device,
  2. int endpointNumber,
  3. int length
)
override

Waits for a bulk or interrupt transfer from the device on a specified endpoint. Returns the Future resolved with the transfer data and status.

Implementation

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