public class KeyLibrary
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
KeyLibrary.ApplicationInfo
Information of the launch application
|
static class |
KeyLibrary.CONSTANT
Constant value class
|
| Constructor and Description |
|---|
KeyLibrary()
Create a new KeyLibrary
|
| Modifier and Type | Method and Description |
|---|---|
int |
clearLaunchApplication(int nID)
Clear launch application of the specified key
|
int |
getLaunchApplication(int nID,
KeyLibrary.ApplicationInfo applicationInfo)
Get launch application of the specified key
|
int |
getUserKeyCode(int nID)
Get Key code of the specified key
|
int |
setDefaultKeyCode(int nID)
Set default Key code to the specified key
|
int |
setLaunchApplication(int nID,
KeyLibrary.ApplicationInfo appInfo)
Set launch application to the specified key
|
int |
setUserKeyCode(int nID,
int KeyCode)
Set Key code to the specified key
|
public int setDefaultKeyCode(int nID)
throws android.os.RemoteException
nID -
Specify the key by KEYIDandroid.os.RemoteException -
If access to the service failspublic int setUserKeyCode(int nID,
int KeyCode)
throws android.os.RemoteException
nID -
Specify the key by KEYIDKeyCode -
Specify the Key codeandroid.os.RemoteException -
If access to the service failspublic int getUserKeyCode(int nID)
throws android.os.RemoteException
nID -
Specify the key by KEYIDandroid.os.RemoteException -
If access to the service failspublic int setLaunchApplication(int nID,
KeyLibrary.ApplicationInfo appInfo)
throws android.os.RemoteException
nID -
Specify the key by KEYIDappInfo -
Specify the launch applicationandroid.os.RemoteException -
If access to the service failspublic int getLaunchApplication(int nID,
KeyLibrary.ApplicationInfo applicationInfo)
throws android.os.RemoteException
nID -
Specify the key by KEYIDapplicationInfo -
Get launch application of the specified keyandroid.os.RemoteException -
If access to the service failspublic int clearLaunchApplication(int nID)
throws android.os.RemoteException
nID -
Specify the key by KEYIDandroid.os.RemoteException -
If access to the service fails