Android.App.Dialog.OnKeyDown Method
A key was pressed down.

Syntax

[Android.Runtime.Register("onKeyDown", "(ILandroid/view/KeyEvent;)Z", "GetOnKeyDown_ILandroid_view_KeyEvent_Handler")]
public virtual bool OnKeyDown (Android.Views.Keycode keyCode, Android.Views.KeyEvent e)

See Also

Dialog.OnKeyUp(Android.Views.Keycode, Android.Views.KeyEvent)
Android.Views.KeyEvent

Parameters

keyCode
The value in event.getKeyCode().
e
Description of the key event.

Returns

Documentation for this section has not yet been entered.

Remarks

A key was pressed down.

If the focused view didn't want this event, this method is called.

The default implementation consumed the KEYCODE_BACK to later handle it in Dialog.OnKeyUp(Android.Views.Keycode, Android.Views.KeyEvent).

[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