Android.Hardware.Usb.UsbRequest Class
A class representing USB request packet.

See Also: UsbRequest Members

Syntax

[Android.Runtime.Register("android/hardware/usb/UsbRequest", DoNotGenerateAcw=true)]
public class UsbRequest : Java.Lang.Object

Remarks

A class representing USB request packet. This can be used for both reading and writing data to or from a Android.Hardware.Usb.UsbDeviceConnection. UsbRequests can be used to transfer data on bulk and interrupt endpoints. Requests on bulk endpoints can be sent synchronously via UsbDeviceConnection.BulkTransfer(UsbEndpoint, System.Byte[], System.Byte[], System.Byte[]) or asynchronously via UsbRequest.Queue(Java.Nio.ByteBuffer, System.Int32) and UsbDeviceConnection.RequestWait. Requests on interrupt endpoints are only send and received asynchronously.

Requests on endpoint zero are not supported by this class; use UsbDeviceConnection.ControlTransfer(UsbAddressing, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32) for endpoint zero requests instead.

[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