public static interface USBMonitor.OnDeviceConnectListener
Modifier and Type | Method and Description |
---|---|
void |
onAttach(android.hardware.usb.UsbDevice device)
called when device attached
|
void |
onCancel(android.hardware.usb.UsbDevice device)
called when canceled or could not get permission from user
|
void |
onConnect(android.hardware.usb.UsbDevice device,
USBMonitor.UsbControlBlock ctrlBlock,
boolean createNew)
called after device opend
|
void |
onDettach(android.hardware.usb.UsbDevice device)
called when device dettach(after onDisconnect)
|
void |
onDisconnect(android.hardware.usb.UsbDevice device,
USBMonitor.UsbControlBlock ctrlBlock)
called when USB device removed or its power off (this callback is called after device closing)
|
void onAttach(android.hardware.usb.UsbDevice device)
device
- void onDettach(android.hardware.usb.UsbDevice device)
device
- void onConnect(android.hardware.usb.UsbDevice device, USBMonitor.UsbControlBlock ctrlBlock, boolean createNew)
device
- ctrlBlock
- createNew
- void onDisconnect(android.hardware.usb.UsbDevice device, USBMonitor.UsbControlBlock ctrlBlock)
device
- ctrlBlock
- void onCancel(android.hardware.usb.UsbDevice device)
device
-