Interface UsbDeviceListener


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

    • onDeviceAttached

      void onDeviceAttached(UsbDevice device)
    • onDeviceDetached

      void onDeviceDetached(UsbDevice device)
    • onPermissionResult

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