Android.Content.IDialogInterfaceOnKeyListener.OnKey Method
Called when a key is dispatched to a dialog.

Syntax

[Android.Runtime.Register("onKey", "(Landroid/content/DialogInterface;ILandroid/view/KeyEvent;)Z", "GetOnKey_Landroid_content_DialogInterface_ILandroid_view_KeyEvent_Handler:Android.Content.IDialogInterfaceOnKeyListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OnKey (IDialogInterface dialog, [Android.Runtime.GeneratedEnum] Android.Views.Keycode keyCode, Android.Views.KeyEvent e)

Parameters

dialog
The dialog the key has been dispatched to.
keyCode
The code for the physical key that was pressed
e
The KeyEvent object containing full information about the event.

Returns

Documentation for this section has not yet been entered.

Remarks

Called when a key is dispatched to a dialog. This allows listeners to get a chance to respond before the dialog.

[Android Documentation]

Requirements

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