Build 1.0_r1(from source)

Interface DialogInterface.OnKeyListener

Enclosing interface:

public static interface DialogInterface.OnKeyListener

Interface definition for a callback to be invoked when a key event is dispatched to this dialog. The callback will be invoked before the key event is given to the dialog.

Method Summary
 boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event)
          Called when a key is dispatched to a dialog.

Method Detail


boolean onKey(DialogInterface dialog,
              int keyCode,
              KeyEvent event)
Called when a key is dispatched to a dialog. This allows listeners to get a chance to respond before the dialog.

dialog - The dialog the key has been dispatched to.
keyCode - The code for the physical key that was pressed
event - The KeyEvent object containing full information about the event.
True if the listener has consumed the event, false otherwise.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature