public class KeyManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
KEYCODE_SOFTKEY_LOCK |
static int |
KEYPAD_MODE_FUNCTION |
static int |
KEYPAD_MODE_LOWERCASE |
static int |
KEYPAD_MODE_NORMAL |
static int |
KEYPAD_MODE_NUMBER |
static int |
KEYPAD_MODE_UPPERCASE |
| Constructor and Description |
|---|
KeyManager() |
| Modifier and Type | Method and Description |
|---|---|
int |
changeKCMapFile(java.lang.String path)
This function changes key map with new KCM file.
|
boolean |
changeKCMapFileToDefault()
This function sets with default KCM file.
|
HiJackData[] |
getAllHiJackData()
This function gets all probrammable key data from key map DB.
|
java.lang.String |
getCurrentKCMapFile()
This function reads current KCM file path.
|
HijackingKeys[] |
getHijackingKeys()
This function gets the key list to be able to re-map to.
|
static KeyManager |
getInstance() |
int |
getKeypadMode()
Gets the current keypad mode.
|
boolean |
isDirectInputStyle()
Gets whether the direct input style is.
|
boolean |
isKeyControlMode()
Gets whether the key control mode is.
|
boolean |
isUsingUnifiedKeycode()
Gets whether the unified keycode is used.
|
boolean |
removeKCMapFile()
This function removes a user changed KCM file and sets with default KCM file.
|
int |
setAllHiJackData(HiJackData[] dataList)
This function updates the key map DB with new KeyManagerData list.
|
boolean |
setDirectInputStyle(boolean enable)
Sets whether the direct input style.
|
boolean |
setKeyControlMode(boolean enable)
Sets whether the key control mode.
|
boolean |
setKeypadMode(int mode)
Sets the keypad mode directly.
|
void |
useUnifiedKeycode(boolean enabled)
Sets whether or not to use the unified keycode.
|
public static final int KEYCODE_SOFTKEY_LOCK
public static final int KEYPAD_MODE_NORMAL
public static final int KEYPAD_MODE_NUMBER
public static final int KEYPAD_MODE_LOWERCASE
public static final int KEYPAD_MODE_UPPERCASE
public static final int KEYPAD_MODE_FUNCTION
public static KeyManager getInstance()
public java.lang.String getCurrentKCMapFile()
throws android.os.RemoteException
android.os.RemoteExceptionpublic int changeKCMapFile(java.lang.String path)
throws android.os.RemoteException
path - new KCM file path with String.android.os.RemoteExceptionpublic boolean removeKCMapFile()
throws android.os.RemoteException
android.os.RemoteExceptionpublic HijackingKeys[] getHijackingKeys() throws android.os.RemoteException
android.os.RemoteExceptionpublic int setAllHiJackData(HiJackData[] dataList) throws android.os.RemoteException
dataList - new KeyManagerData arrayandroid.os.RemoteExceptionKeyManager.getAllHiJackData()public HiJackData[] getAllHiJackData() throws android.os.RemoteException
android.os.RemoteExceptionKeyManager.setAllHiJackData(device.common.HiJackData[])public void useUnifiedKeycode(boolean enabled)
throws android.os.RemoteException
enabled - true to enable, false to disable.android.os.RemoteExceptionKeyManager.isUsingUnifiedKeycode()public boolean isUsingUnifiedKeycode()
throws android.os.RemoteException
true When the use of unified keycode is enabledandroid.os.RemoteExceptionKeyManager.useUnifiedKeycode(boolean)public boolean changeKCMapFileToDefault()
throws android.os.RemoteException
android.os.RemoteExceptionpublic boolean isDirectInputStyle()
throws android.os.RemoteException
ture When the direct input style is enabledandroid.os.RemoteExceptionpublic boolean setDirectInputStyle(boolean enable)
throws android.os.RemoteException
ture When the direct input style is enabledandroid.os.RemoteExceptionpublic boolean isKeyControlMode()
throws android.os.RemoteException
ture When the key control mode is enabledandroid.os.RemoteExceptionpublic boolean setKeyControlMode(boolean enable)
throws android.os.RemoteException
ture When the key control mode is enabledandroid.os.RemoteExceptionpublic int getKeypadMode()
throws android.os.RemoteException
KeyManager.KEYPAD_MODE_NORMAL, KeyManager.KEYPAD_MODE_NUMBER, KeyManager.KEYPAD_MODE_LOWERCASE, KeyManager.KEYPAD_MODE_UPPERCASE or KeyManager.KEYPAD_MODE_FUNCTION.android.os.RemoteExceptionpublic boolean setKeypadMode(int mode)
throws android.os.RemoteException
mode - One of KeyManager.KEYPAD_MODE_NORMAL, KeyManager.KEYPAD_MODE_NUMBER, KeyManager.KEYPAD_MODE_LOWERCASE, KeyManager.KEYPAD_MODE_UPPERCASE or KeyManager.KEYPAD_MODE_FUNCTION.android.os.RemoteException