public class KeypadCtrl
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUNDLE_ERROR_CODE |
static java.lang.String |
BUNDLE_ERROR_MSG |
static int |
RESULT_CODE_ERROR |
static int |
RESULT_CODE_SUCCESS |
| Constructor and Description |
|---|
KeypadCtrl(android.content.Context context)
Instantiates a new Keypad ctrl.
|
| Modifier and Type | Method and Description |
|---|---|
android.os.Bundle |
getBacklight()
Get keypad backlight enable setting.
|
android.os.Bundle |
getFunctionMode()
Get keypad function mode enable setting.
|
android.os.Bundle |
getMode()
Get keypad mode setting.
|
android.os.Bundle |
getSound()
Get keypad sound enable setting.
|
android.os.Bundle |
getVibration()
Get keypad vibration enable setting.
|
android.os.Bundle |
setBacklight(boolean enable)
Set keypad backlight enable mode.
|
android.os.Bundle |
setFunctionMode(boolean enable)
Set keypad function mode enable.
|
android.os.Bundle |
setMode(int mode)
Set keypad mode.
|
android.os.Bundle |
setSound(boolean enable)
Set keypad sound enable mode.
|
android.os.Bundle |
setVibration(boolean enable)
Set keypad vibration enable mode.
|
public static final java.lang.String BUNDLE_ERROR_CODE
public static final java.lang.String BUNDLE_ERROR_MSG
public static final int RESULT_CODE_ERROR
public static final int RESULT_CODE_SUCCESS
public KeypadCtrl(android.content.Context context)
context - the contextpublic android.os.Bundle setSound(boolean enable)
enable - the keypad sound, "false:disable, true:enable"public android.os.Bundle getSound()
public android.os.Bundle setVibration(boolean enable)
enable - the keypad vibration, "false:disable, true:enable"public android.os.Bundle getVibration()
public android.os.Bundle setBacklight(boolean enable)
enable - the keypad backlight, "false:disable, true:enable"public android.os.Bundle getBacklight()
public android.os.Bundle setMode(int mode)
mode - the keypad mode, "0:numeric mode, 2:function mode"public android.os.Bundle getMode()
public android.os.Bundle setFunctionMode(boolean enable)
enable - the keypad function mode, "false:disable, true:enable"public android.os.Bundle getFunctionMode()