Android Guides | Samples

Android.App.Dialog.DispatchKeyEvent Method

Called to process key events.

Syntax

[Android.Runtime.Register("dispatchKeyEvent", "(Landroid/view/KeyEvent;)Z", "GetDispatchKeyEvent_Landroid_view_KeyEvent_Handler")]
public virtual Boolean DispatchKeyEvent (KeyEvent e)

Parameters

e
The key event.

Remarks

Called to process key events. You can override this to intercept all key events before they are dispatched to the window. Be sure to call this implementation for key events that should be handled normally.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1