# android.hardware.usb

# android.hardware.usb

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/hardware/usb/package-summary "View this page in Java")

## Classes

|----------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|
| [UsbAccessory](https://developer.android.com/reference/kotlin/android/hardware/usb/UsbAccessory)               | A class representing a USB accessory, which is an external hardware component that communicates with an android application over USB.  |
| [UsbConfiguration](https://developer.android.com/reference/kotlin/android/hardware/usb/UsbConfiguration)       | A class representing a configuration on a[UsbDevice](https://developer.android.com/reference/kotlin/android/hardware/usb/UsbDevice).   |
| [UsbConstants](https://developer.android.com/reference/kotlin/android/hardware/usb/UsbConstants)               | Contains constants for the USB protocol.                                                                                               |
| [UsbDevice](https://developer.android.com/reference/kotlin/android/hardware/usb/UsbDevice)                     | This class represents a USB device attached to the android device with the android device acting as the USB host.                      |
| [UsbDeviceConnection](https://developer.android.com/reference/kotlin/android/hardware/usb/UsbDeviceConnection) | This class is used for sending and receiving data and control messages to a USB device.                                                |
| [UsbEndpoint](https://developer.android.com/reference/kotlin/android/hardware/usb/UsbEndpoint)                 | A class representing an endpoint on a[UsbInterface](https://developer.android.com/reference/kotlin/android/hardware/usb/UsbInterface). |
| [UsbInterface](https://developer.android.com/reference/kotlin/android/hardware/usb/UsbInterface)               | A class representing an interface on a[UsbDevice](https://developer.android.com/reference/kotlin/android/hardware/usb/UsbDevice).      |
| [UsbManager](https://developer.android.com/reference/kotlin/android/hardware/usb/UsbManager)                   | This class allows you to access the state of USB and communicate with USB devices.                                                     |
| [UsbRequest](https://developer.android.com/reference/kotlin/android/hardware/usb/UsbRequest)                   | A class representing USB request packet.                                                                                               |