See Also: UsbManager
public class UsbManager : Object
This class allows you to access the state of USB and communicate with USB devices. Currently only host mode is supported in the public API.
You can obtain an instance of this class by calling Context.GetSystemService(String).
UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);
For more information about communicating with USB hardware, read the USB developer guide.
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 12
The members of Android.Hardware.Usb.UsbManager are listed below.
See Also: Object
|ActionUsbAccessoryAttached||String. Broadcast Action: A broadcast for USB accessory attached event.|
|ActionUsbAccessoryDetached||String. Broadcast Action: A broadcast for USB accessory detached event.|
|ActionUsbDeviceAttached||String. Broadcast Action: A broadcast for USB device attached event.|
|ActionUsbDeviceDetached||String. Broadcast Action: A broadcast for USB device detached event.|
|ExtraAccessory||String. Name of extra for UsbManager.ActionUsbAccessoryAttached and UsbManager.ActionUsbAccessoryDetached broadcasts containing the UsbAccessory object for the accessory.|
|ExtraDevice||String. Name of extra for UsbManager.ActionUsbDeviceAttached and UsbManager.ActionUsbDeviceDetached broadcasts containing the UsbDevice object for the device.|
|ExtraPermissionGranted||String. Name of extra added to the PendingIntent passed into UsbManager.RequestPermission(UsbDevice,PendingIntent) or UsbManager.RequestPermission(UsbAccessory,PendingIntent) containing a boolean value indicating whether the user granted permission or not.|
Returns a list of currently attached USB accessories. (in the current implementation there can be at most one)
Returns true if the caller has permission to access the accessory.
Returns true if the caller has permission to access the device.
Opens a file descriptor for reading and writing data to the USB accessory.
Opens the device so it can be used to send and receive data using UsbRequest.
Requests temporary permission for the given package to access the accessory.
Requests temporary permission for the given package to access the device.