Android.Hardware.Usb.UsbDevice Class
This class represents a USB device attached to the android device with the android device acting as the USB host.

See Also: UsbDevice Members

Syntax

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

Remarks

This class represents a USB device attached to the android device with the android device acting as the USB host. Each device contains one or more Android.Hardware.Usb.UsbInterfaces, each of which contains a number of Android.Hardware.Usb.UsbEndpoints (the channels via which data is transmitted over USB).

This class contains information (along with Android.Hardware.Usb.UsbInterface and Android.Hardware.Usb.UsbEndpoint) that describes the capabilities of the USB device. To communicate with the device, you open a Android.Hardware.Usb.UsbDeviceConnection for the device and use Android.Hardware.Usb.UsbRequest to send and receive data on an endpoint. UsbDeviceConnection.ControlTransfer(UsbAddressing, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32) is used for control requests on endpoint zero.

Developer Guides

For more information about communicating with USB hardware, read the USB developer guide.

[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