public class UsbDiscoverer extends Object
Constructor and Description |
---|
UsbDiscoverer() |
Modifier and Type | Method and Description |
---|---|
static UsbAccessory[] |
getDataManAccessories(Context context)
Returns an array containing all DataMan USB devices currently attached as accessory.
|
static HashMap<String,UsbDevice> |
getDataManDevices(Context context)
Returns a
HashMap containing all DataMan USB devices currently attached. |
public static HashMap<String,UsbDevice> getDataManDevices(Context context)
HashMap
containing all DataMan USB devices currently attached. USB device name
is the key for the returned HashMap
. The result will be empty if no devices are attached,
or if USB host mode is inactive or unsupported.context
- The application's environment.HashMap
containing all connected DataMan USB devices.public static UsbAccessory[] getDataManAccessories(Context context)
context
- The application's environment.UsbAccessory
objects. Can be empty.