public abstract class

KeyListener

extends BroadcastReceiver
java.lang.Object
   ↳ android.content.BroadcastReceiver
     ↳ de.auerswald.functions.KeyListener

Summary

Public Constructors
KeyListener()
Public Methods
abstract void onKeyBind(Context ctx, int keyId, boolean bind)
onKeyBind is called when an key is assigned or removed an on boot of the phone
abstract void onKeyPressed(Context ctx, int keyId)
onKeyBind is called when an key was pressed
void onReceive(Context context, Intent intent)
[Expand]
Inherited Methods
From class android.content.BroadcastReceiver
From class java.lang.Object

Public Constructors

public KeyListener ()

Public Methods

public abstract void onKeyBind (Context ctx, int keyId, boolean bind)

onKeyBind is called when an key is assigned or removed an on boot of the phone

Parameters
keyId id of the key
bind indication whether a key was assigned ( true ) or removed ( false )

public abstract void onKeyPressed (Context ctx, int keyId)

onKeyBind is called when an key was pressed

Parameters
keyId id of the key pressed

public void onReceive (Context context, Intent intent)