Android.Hardware.Usb.UsbDeviceConnection.BulkTransfer Method
Performs a bulk transaction on the given endpoint.

Syntax

[Android.Runtime.Register("bulkTransfer", "(Landroid/hardware/usb/UsbEndpoint;[BII)I", "GetBulkTransfer_Landroid_hardware_usb_UsbEndpoint_arrayBIIHandler")]
public virtual int BulkTransfer (UsbEndpoint endpoint, byte[] buffer, int length, int timeout)

Parameters

endpoint
the endpoint for this transaction
buffer
buffer for data to send or receive
length
the length of the data to send or receive
timeout
in milliseconds

Returns

Documentation for this section has not yet been entered.

Remarks

Performs a bulk transaction on the given endpoint. The direction of the transfer is determined by the direction of the endpoint.

This method transfers data starting from index 0 in the buffer. To specify a different offset, use UsbDeviceConnection.BulkTransfer(UsbEndpoint, System.Byte[], System.Byte[], System.Byte[], System.Byte[]).

[Android Documentation]

Requirements

Namespace: Android.Hardware.Usb
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 12