public class KeyLibrary
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
KeyLibrary.ApplicationInfo
Application information class
|
static class |
KeyLibrary.CONSTANT
Constant value class
|
| Constructor and Description |
|---|
KeyLibrary()
Create a instance of the KeyLibrary class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
clearFnLaunchApplication(int nID)
Clear the application information launched when the specified key is pushed in Fn mode.
|
int |
clearLaunchApplication(int nID)
Clear the application information to be launched when the specified key is pushed in 1/A/a mode.
|
int |
getFnLaunchApplication(int nID,
KeyLibrary.ApplicationInfo appInfo)
Get the application information to be launched when the specified key is pushed in Fn mode.
|
int |
getFnUserKeyCode(int nID)
Get the key code generated when the specified key is pushed in Fn mode.
|
int |
getLaunchApplication(int nID,
KeyLibrary.ApplicationInfo appInfo)
Get the application information to be launched when the specified key is pushed in 1/A/a mode.
|
int |
getUserKeyCode(int nID)
Get the key code generated when the specified key is pushed in 1/A/a mode.
|
int |
setDefaultKeyCode(int nID)
Set the key code generated when the specified key is pushed in 1/A/a mode to default.
|
int |
setFnDefaultKeyCode(int nID)
Set the key code generated when the specified key is pushed in Fn mode to default.
|
int |
setFnLaunchApplication(int nID,
KeyLibrary.ApplicationInfo appInfo)
Set the application to be launched when the specified key is pushed in Fn mode.
|
int |
setFnUserKeyCode(int nID,
int KeyCode)
Set the key code generated when the specified key is pushed in Fn mode.
|
int |
setLaunchApplication(int nID,
KeyLibrary.ApplicationInfo appInfo)
Set the application to be launched when the specified key is pushed in 1/A/a mode.
|
int |
setUserKeyCode(int nID,
int KeyCode)
Set the key code generated when the specified key is pushed in 1/A/a mode.
|
public int setUserKeyCode(int nID,
int KeyCode)
throws android.os.RemoteException
nID -
KEYIDKeyCode -
key codeKeyLibrary.CONSTANT.RETURN.SUCCESS : Success
KeyLibrary.CONSTANT.RETURN.ERROR_NOTSUPPORTED : Unsupported error
KeyLibrary.CONSTANT.RETURN.ERROR_FUNCTION : Internal errorandroid.os.RemoteException -
Throw when access to the key service fails.public int getUserKeyCode(int nID)
throws android.os.RemoteException
nID -
KEYIDKeyLibrary.CONSTANT.RETURN.ERROR_NOTSUPPORTED : Unsupported error
KeyLibrary.CONSTANT.RETURN.ERROR_FUNCTION : Internal errorandroid.os.RemoteException -
Throw when access to the key service fails.public int setDefaultKeyCode(int nID)
throws android.os.RemoteException
nID -
KEYIDKeyLibrary.CONSTANT.RETURN.SUCCESS : Success
KeyLibrary.CONSTANT.RETURN.ERROR_NOTSUPPORTED : Unsupported error
KeyLibrary.CONSTANT.RETURN.ERROR_FUNCTION : Internal errorandroid.os.RemoteException -
Throw when access to the key service fails.public int setFnUserKeyCode(int nID,
int KeyCode)
throws android.os.RemoteException
nID -
KEYIDKeyCode -
key codeKeyLibrary.CONSTANT.RETURN.SUCCESS : Success
KeyLibrary.CONSTANT.RETURN.ERROR_NOTSUPPORTED : Unsupported error
KeyLibrary.CONSTANT.RETURN.ERROR_FUNCTION : Internal errorandroid.os.RemoteException -
Throw when access to the key service fails.public int getFnUserKeyCode(int nID)
throws android.os.RemoteException
nID -
KEYIDKeyLibrary.CONSTANT.RETURN.ERROR_NOTSUPPORTED : Unsupported error
KeyLibrary.CONSTANT.RETURN.ERROR_FUNCTION : Internal errorandroid.os.RemoteException -
Throw when access to the key service fails.public int setFnDefaultKeyCode(int nID)
throws android.os.RemoteException
nID -
KEYIDKeyLibrary.CONSTANT.RETURN.SUCCESS : Success
KeyLibrary.CONSTANT.RETURN.ERROR_NOTSUPPORTED : Unsupported error
KeyLibrary.CONSTANT.RETURN.ERROR_FUNCTION : Internal errorandroid.os.RemoteException -
Throw when access to the key service fails.public int setLaunchApplication(int nID,
KeyLibrary.ApplicationInfo appInfo)
throws android.os.RemoteException
nID -
KEYIDappInfo -
Application informationKeyLibrary.CONSTANT.RETURN.SUCCESS : Success
KeyLibrary.CONSTANT.RETURN.ERROR_NOTSUPPORTED : Unsupported error
KeyLibrary.CONSTANT.RETURN.ERROR_FUNCTION : Internal errorandroid.os.RemoteException -
Throw when access to the key service fails.public int getLaunchApplication(int nID,
KeyLibrary.ApplicationInfo appInfo)
throws android.os.RemoteException
nID -
KEYIDappInfo -
Application informationKeyLibrary.CONSTANT.RETURN.SUCCESS : Success
KeyLibrary.CONSTANT.RETURN.ERROR_NOTSUPPORTED : Unsupported error
KeyLibrary.CONSTANT.RETURN.ERROR_FUNCTION : Internal errorandroid.os.RemoteException -
Throw when access to the key service fails.public int clearLaunchApplication(int nID)
throws android.os.RemoteException
nID -
KEYIDKeyLibrary.CONSTANT.RETURN.SUCCESS : Success
KeyLibrary.CONSTANT.RETURN.ERROR_NOTSUPPORTED : Unsupported error
KeyLibrary.CONSTANT.RETURN.ERROR_FUNCTION : Internal errorandroid.os.RemoteException -
Throw when access to the key service fails.public int setFnLaunchApplication(int nID,
KeyLibrary.ApplicationInfo appInfo)
throws android.os.RemoteException
nID -
KEYIDappInfo -
Application informationKeyLibrary.CONSTANT.RETURN.SUCCESS : Success
KeyLibrary.CONSTANT.RETURN.ERROR_NOTSUPPORTED : Unsupported error
KeyLibrary.CONSTANT.RETURN.ERROR_FUNCTION : Internal errorandroid.os.RemoteException -
Throw when access to the key service fails.public int getFnLaunchApplication(int nID,
KeyLibrary.ApplicationInfo appInfo)
throws android.os.RemoteException
nID -
KEYIDappInfo -
Application informationKeyLibrary.CONSTANT.RETURN.SUCCESS : Success
KeyLibrary.CONSTANT.RETURN.ERROR_NOTSUPPORTED : Unsupported error
KeyLibrary.CONSTANT.RETURN.ERROR_FUNCTION : Internal errorandroid.os.RemoteException -
Throw when access to the key service fails.public int clearFnLaunchApplication(int nID)
throws android.os.RemoteException
nID -
KEYIDKeyLibrary.CONSTANT.RETURN.SUCCESS : Success
KeyLibrary.CONSTANT.RETURN.ERROR_NOTSUPPORTED : Unsupported error
KeyLibrary.CONSTANT.RETURN.ERROR_FUNCTION : Internal errorandroid.os.RemoteException -
Throw when access to the key service fails.