Package com.unitech.api.keypad
Class KeypadCtrl
java.lang.Object
com.unitech.api.keypad.KeypadCtrl
The type General ctrl.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionandroid.os.BundleGet keypad alpha key enable setting.android.os.BundleGet keypad alpha mode enable setting.android.os.BundleGet keypad backlight enable setting.android.os.BundleGet keypad function key enable setting.android.os.BundleGet keypad function mode enable setting.android.os.BundlegetMode()Get keypad mode setting.android.os.BundlegetSound()Get keypad sound enable setting.android.os.BundleGet keypad vibration enable setting.android.os.BundlesetAlphaKey(boolean enable) Set keypad alpha key enableandroid.os.BundlesetAlphaMode(boolean enable) Set keypad alpha mode enableandroid.os.BundlesetBacklight(boolean enable) Set keypad backlight enable mode.android.os.BundlesetFunctionKey(boolean enable) Set keypad function key enable.android.os.BundlesetFunctionMode(boolean enable) Set keypad function mode enable.android.os.BundlesetMode(int mode) Set keypad mode.android.os.BundlesetSound(boolean enable) Set keypad sound enable mode.android.os.BundlesetVibration(boolean enable) Set keypad vibration enable mode.
-
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:
-
-
Constructor Details
-
KeypadCtrl
public KeypadCtrl(android.content.Context context) Instantiates a new Keypad ctrl.- Parameters:
context- the context
-
-
Method Details
-
setSound
public android.os.Bundle setSound(boolean enable) Set keypad sound enable mode.- Parameters:
enable- the keypad sound, "false:disable, true:enable"- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
getSound
public android.os.Bundle getSound()Get keypad sound enable setting.- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
int enable = bundle.getInt("enable"); (0:false, 1:true)
-
setVibration
public android.os.Bundle setVibration(boolean enable) Set keypad vibration enable mode.- Parameters:
enable- the keypad vibration, "false:disable, true:enable"- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
getVibration
public android.os.Bundle getVibration()Get keypad vibration enable setting.- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
int enable = bundle.getInt("enable"); (0:false, 1:true)
-
setBacklight
public android.os.Bundle setBacklight(boolean enable) Set keypad backlight enable mode.- Parameters:
enable- the keypad backlight, "false:disable, true:enable"- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
getBacklight
public android.os.Bundle getBacklight()Get keypad backlight enable setting.- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
int enable = bundle.getInt("enable"); (0:false, 1:true)
-
setMode
public android.os.Bundle setMode(int mode) Set keypad mode.- Parameters:
mode- the keypad mode, "0:numeric mode, 2:function mode"- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
getMode
public android.os.Bundle getMode()Get keypad mode setting.- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
int mode = bundle.getInt("mode"); (0:numeric mode, 2:function mode)
-
setFunctionMode
public android.os.Bundle setFunctionMode(boolean enable) Set keypad function mode enable.- Parameters:
enable- the keypad function mode, "false:disable, true:enable"- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
getFunctionMode
public android.os.Bundle getFunctionMode()Get keypad function mode enable setting.- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
int enable = bundle.getInt("enable"); (0:false, 1:true)
-
setFunctionKey
public android.os.Bundle setFunctionKey(boolean enable) Set keypad function key enable.- Parameters:
enable- the keypad function key, "false:disable, true:enable"- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
getFunctionKey
public android.os.Bundle getFunctionKey()Get keypad function key enable setting.- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
int enable = bundle.getInt("enable"); (0:false, 1:true)
-
setAlphaMode
public android.os.Bundle setAlphaMode(boolean enable) Set keypad alpha mode enable- Parameters:
enable- the keypad alpha mode, "false:disable, true:enable"- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
getAlphaMode
public android.os.Bundle getAlphaMode()Get keypad alpha mode enable setting.- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
int enable = bundle.getInt("enable"); (0:false, 1:true)
-
setAlphaKey
public android.os.Bundle setAlphaKey(boolean enable) Set keypad alpha key enable- Parameters:
enable- the keypad alpha key, "false:disable, true:enable"- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-
getAlphaKey
public android.os.Bundle getAlphaKey()Get keypad alpha key enable setting.- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
int enable = bundle.getInt("enable"); (0:false, 1:true)
-