# Interface UsbDeviceListener

public interface UsbDeviceListener
Callback for USB attach/detach and permission events. Methods fire on the EDT.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onDeviceAttached(UsbDevice device)`
  `void`
  `onDeviceDetached(UsbDevice device)`
  `void`
  `onPermissionResult(UsbDevice device, boolean granted)`
  Result of `Usb.requestPermission(device)`.

- ## Method Details

  - ### onDeviceAttached

    void onDeviceAttached(UsbDevice device)

  - ### onDeviceDetached

    void onDeviceDetached(UsbDevice device)

  - ### onPermissionResult

    void onPermissionResult(UsbDevice device, boolean granted)
    Result of `Usb.requestPermission(device)`.