Android Guides | Samples

Android.Hardware.Usb.UsbDeviceConnection.BulkTransfer Method

Performs a bulk transaction on the given endpoint.

Syntax

[Android.Runtime.Register("bulkTransfer", "(Landroid/hardware/usb/UsbEndpoint;[BIII)I", "GetBulkTransfer_Landroid_hardware_usb_UsbEndpoint_arrayBIIIHandler")]
public virtual Int32 BulkTransfer (UsbEndpoint endpoint, Byte[] buffer, Int32 offset, Int32 length, Int32 timeout)

Parameters

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

Remarks

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

[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 18