public class KeyManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
KEYCODE_SOFTKEY_LOCK |
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.
|
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() |
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.
|
void |
useUnifiedKeycode(boolean enabled)
Sets whether or not to use the unified keycode.
|
public static final int KEYCODE_SOFTKEY_LOCK
public static KeyManager getInstance()
public java.lang.String getCurrentKCMapFile() throws android.os.RemoteException
android.os.RemoteException
public int changeKCMapFile(java.lang.String path) throws android.os.RemoteException
path
- new KCM file path with String.android.os.RemoteException
public boolean removeKCMapFile() throws android.os.RemoteException
android.os.RemoteException
public HijackingKeys[] getHijackingKeys() throws android.os.RemoteException
android.os.RemoteException
public int setAllHiJackData(HiJackData[] dataList) throws android.os.RemoteException
dataList
- new KeyManagerData arrayandroid.os.RemoteException
KeyManager.getAllHiJackData()
public HiJackData[] getAllHiJackData() throws android.os.RemoteException
android.os.RemoteException
KeyManager.setAllHiJackData(device.common.HiJackData[])
public void useUnifiedKeycode(boolean enabled) throws android.os.RemoteException
enabled
- true
to enable, false
to disable.android.os.RemoteException
KeyManager.isUsingUnifiedKeycode()
public boolean isUsingUnifiedKeycode() throws android.os.RemoteException
true
When the use of unified keycode is enabledandroid.os.RemoteException
KeyManager.useUnifiedKeycode(boolean)