com.morpho.android.usb
Class USBManager
java.lang.Object
com.morpho.android.usb.USBManager
public class USBManager
- extends java.lang.Object
USBManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOFTWAREID_MSO100
public static final java.lang.String SOFTWAREID_MSO100
- See Also:
- Constant Field Values
SOFTWAREID_MSO300
public static final java.lang.String SOFTWAREID_MSO300
- See Also:
- Constant Field Values
SOFTWAREID_MSO350
public static final java.lang.String SOFTWAREID_MSO350
- See Also:
- Constant Field Values
SOFTWAREID_MSOTEST
public static final java.lang.String SOFTWAREID_MSOTEST
- See Also:
- Constant Field Values
SOFTWAREID_CBM
public static final java.lang.String SOFTWAREID_CBM
- See Also:
- Constant Field Values
SOFTWAREID_MSO1350
public static final java.lang.String SOFTWAREID_MSO1350
- See Also:
- Constant Field Values
SOFTWAREID_FVP
public static final java.lang.String SOFTWAREID_FVP
- See Also:
- Constant Field Values
SOFTWAREID_FVP_C
public static final java.lang.String SOFTWAREID_FVP_C
- See Also:
- Constant Field Values
SOFTWAREID_FVP_CL
public static final java.lang.String SOFTWAREID_FVP_CL
- See Also:
- Constant Field Values
SOFTWAREID_MEP
public static final java.lang.String SOFTWAREID_MEP
- See Also:
- Constant Field Values
SOFTWAREID_CBME3
public static final java.lang.String SOFTWAREID_CBME3
- See Also:
- Constant Field Values
SOFTWAREID_CBME3L
public static final java.lang.String SOFTWAREID_CBME3L
- See Also:
- Constant Field Values
SOFTWAREID_MSO1300E3
public static final java.lang.String SOFTWAREID_MSO1300E3
- See Also:
- Constant Field Values
SOFTWAREID_MSO1300E3L
public static final java.lang.String SOFTWAREID_MSO1300E3L
- See Also:
- Constant Field Values
SOFTWAREID_MSO1350E3
public static final java.lang.String SOFTWAREID_MSO1350E3
- See Also:
- Constant Field Values
SOFTWAREID_MSO1350E3L
public static final java.lang.String SOFTWAREID_MSO1350E3L
- See Also:
- Constant Field Values
SOFTWAREID_MASIGMA
public static final java.lang.String SOFTWAREID_MASIGMA
- See Also:
- Constant Field Values
context
public static android.content.Context context
ACTION_USB_PERMISSION
public static java.lang.String ACTION_USB_PERMISSION
getInstance
public static USBManager getInstance()
initialize
public int initialize(android.app.Activity context,
java.lang.String packagePath)
- Initialize context and requests temporary permission for the given package to access the device
- Parameters:
context
- context to be used in the USB ManagerpackagePath
- package to access the USB device- See Also:
MORPHOSMART_SDK_IMPLEMENTATIONTIPSANDRECOMMANDATIONS
IsUsbDaemonStarted
public int IsUsbDaemonStarted()
initialize
public int initialize(android.content.Context context,
java.lang.String packagePath)
isDevicesHasPermission
public boolean isDevicesHasPermission()
scanDevice
public int scanDevice()
initialize
public void initialize()
getUsbDaemonVersion
public java.lang.String getUsbDaemonVersion()
getDeviceModel
public java.lang.String getDeviceModel(USBDeviceAttributes attribs)
isSupported
public boolean isSupported(USBDeviceAttributes attribs)
enumerate
public USBDeviceAttributes[] enumerate()
listDevices
public void listDevices()
throws java.lang.Exception
- Throws:
java.lang.Exception
getNbDevices
public int getNbDevices()
throws java.lang.Exception
- Throws:
java.lang.Exception
getDevice
public USBDevice getDevice(int index)