Package com.unitech.api.dmi
Class DmiCtrl
java.lang.Object
com.unitech.api.dmi.DmiCtrl
The type Dmi ctrl.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
BUNDLE_ERROR_CODE
- See Also:
-
BUNDLE_ERROR_MSG
- See Also:
-
RESULT_CODE_ERROR
public static final int RESULT_CODE_ERROR- See Also:
-
RESULT_CODE_SUCCESS
public static final int RESULT_CODE_SUCCESS- See Also:
-
KEY_MODULE
- See Also:
-
KEY_STATUS
- See Also:
-
KEY_RESULT
- See Also:
-
KEY_MESSAGE
- See Also:
-
DMI_CAMERA
- See Also:
-
DMI_TOUCH
- See Also:
-
DMI_FLASHLIGHT
- See Also:
-
DMI_PHYSICAL_KEYBOARD
- See Also:
-
DMI_VIRTUAL_KEYBOARD
- See Also:
-
DMI_USB
- See Also:
-
DMI_USB_MTP_MODE
- See Also:
-
DMI_GPS
- See Also:
-
DMI_BLUETOOTH
- See Also:
-
DMI_WLAN
- See Also:
-
DMI_WWAN
- See Also:
-
DMI_DOZE_MODE
- See Also:
-
ENABLE
public static final int ENABLE- See Also:
-
DISABLE
public static final int DISABLE- See Also:
-
NOT_SUPPORT
public static final int NOT_SUPPORT- See Also:
-
-
Constructor Details
-
DmiCtrl
public DmiCtrl(android.content.Context context) Instantiates a new Dmi ctrl.- Parameters:
context- the context
-
-
Method Details
-
DCMO_Get
DMI get bundle.- Parameters:
cmdData- the target DMI items. Supported the following items:
"Touch"
"Keyboard" (PhysicalKeyboard)
"Usb"
"UsbMtpMode"
"Gps"
"WWAN"
"Scanner"
"Camera"
"Ime" (VirtualKeyboard)
"WLAN"
"Bluetooth"
"Flash" (Flashlight)
"DozeMode"- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
Boolean result = bundle.getBoolean("Result");
Result = 1 -> True
Result = 0 -> False
Result = 2 -> Not Support
int status = bundle.getInt("Status");
-
DCMO_Set
DMI set bundle.- Parameters:
cmdData- the target DMI item. Supported the following items:
"Touch"
"Keyboard" (PhysicalKeyboard)
"Usb"
"UsbMtpMode"
"Gps"
"WWAN"
"Scanner"
"Camera"
"Ime" (VirtualKeyboard)
"WLAN"
"Bluetooth"
"Flash" (Flashlight)
"DozeMode"enable- Turn on / off the target item. true: Enable, false: Disable- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
Boolean result = bundle.getBoolean("Result");
Result = 1 -> True
Result = 0 -> False
Result = 2 -> Not Support
int status = bundle.getInt("Status");
-