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;[BII)I", "GetBulkTransfer_Landroid_hardware_usb_UsbEndpoint_arrayBIIHandler")]
public virtual Int32 BulkTransfer (UsbEndpoint endpoint, Byte[] buffer, Int32 length, Int32 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

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,Byte[],Byte[],Byte[],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