-
public interface USBMonitor.OnDeviceConnectListenerUSB機器の状態変更時のコールバックリスナー
-
-
Method Summary
Modifier and Type Method Description abstract voidonAttach(UsbDevice device)called when device attached abstract voidonDettach(UsbDevice device)called when device dettach(after onDisconnect) abstract voidonConnect(UsbDevice device, USBMonitor.UsbControlBlock ctrlBlock, boolean createNew)called after device opend abstract voidonDisconnect(UsbDevice device, USBMonitor.UsbControlBlock ctrlBlock)called when USB device removed or its power off (this callback is called after device closing) abstract voidonCancel(UsbDevice device)called when canceled or could not get permission from user -
-
Method Detail
-
onConnect
abstract void onConnect(UsbDevice device, USBMonitor.UsbControlBlock ctrlBlock, boolean createNew)
called after device opend
-
onDisconnect
abstract void onDisconnect(UsbDevice device, USBMonitor.UsbControlBlock ctrlBlock)
called when USB device removed or its power off (this callback is called after device closing)
-
-
-
-