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 possibleUsbSerialDrivers
from the currently-attachedUsbDevice
hierarchy.static UsbSerialProber
static ProbeTable
probeDevice
(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 possibleUsbSerialDrivers
from the currently-attachedUsbDevice
hierarchy. 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
UsbSerialDriver
compatible with this device, ornull
if none available.
-