Package com.zebra.commoniolib
Class UsbSerialProber
java.lang.Object
com.zebra.commoniolib.UsbSerialProber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAllDrivers(android.hardware.usb.UsbManager usbManager) Finds and builds all possibleUsbSerialDriversfrom the currently-attachedUsbDevicehierarchy.static UsbSerialProberstatic ProbeTableprobeDevice(android.hardware.usb.UsbDevice usbDevice) Probes a single device for a compatible driver.
-
Constructor Details
-
UsbSerialProber
-
-
Method Details
-
getDefaultProber
-
getDefaultProbeTable
-
findAllDrivers
Finds and builds all possibleUsbSerialDriversfrom the currently-attachedUsbDevicehierarchy. This method does not require permission from the Android USB system, since it does not open any of the devices.- Parameters:
usbManager-- Returns:
- a list, possibly empty, of all compatible drivers
-
probeDevice
Probes a single device for a compatible driver.- Parameters:
usbDevice- the usb device to probe- Returns:
- a new
UsbSerialDrivercompatible with this device, ornullif none available.
-