Package 

Interface USBMonitor.OnDeviceConnectListener

    • Method Summary

      Modifier and Type Method Description
      abstract void onAttach(UsbDevice device) called when device attached
      abstract void onDettach(UsbDevice device) called when device dettach(after onDisconnect)
      abstract void onConnect(UsbDevice device, USBMonitor.UsbControlBlock ctrlBlock, boolean createNew) called after device opend
      abstract void onDisconnect(UsbDevice device, USBMonitor.UsbControlBlock ctrlBlock) called when USB device removed or its power off (this callback is called after device closing)
      abstract void onCancel(UsbDevice device) called when canceled or could not get permission from user
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait