Android Guides | Samples

Android.Hardware.Usb Namespace

Provides support to communicate with USB hardware peripherals that are connected to Android-powered devices.

Remarks

Provides support to communicate with USB hardware peripherals that are connected to Android-powered devices.

For more information, see the USB guide.

Use UsbManager to access the state of the USB and to communicate with connected hardware peripherals. Use UsbDevice to communicate with the hardware peripheral if the Android-powered device is acting as the USB host. Use UsbAccessory if the peripheral is acting as the USB host.

Classes

TypeReason
UsbAccessoryA class representing a USB accessory, which is an external hardware component that communicates with an android application over USB.
UsbAccessory+InterfaceConsts
UsbAddressingEnumerates values returned by several types and taken as a parameter of several methods of UsbDeviceConnection.
UsbClassEnumerates values returned by several types.
UsbConfigurationA class representing a configuration on a UsbDevice.
UsbConfiguration+InterfaceConsts
UsbConstantsContains constants for the USB protocol.
UsbDeviceThis class represents a USB device attached to the android device with the android device acting as the USB host.
UsbDevice+InterfaceConsts
UsbDeviceConnectionThis class is used for sending and receiving data and control messages to a USB device.
UsbEndpointA class representing an endpoint on a UsbInterface.
UsbEndpoint+InterfaceConsts
UsbInterfaceA class representing an interface on a UsbDevice.
UsbInterface+InterfaceConsts
UsbManagerThis class allows you to access the state of USB and communicate with USB devices.
UsbRequestA class representing USB request packet.