Android Guides | Samples

Android.App.Dialog.SetOnKeyListener Method

Sets the callback that will be called if a key is dispatched to the dialog.

Syntax

[Android.Runtime.Register("setOnKeyListener", "(Landroid/content/DialogInterface$OnKeyListener;)V", "GetSetOnKeyListener_Landroid_content_DialogInterface_OnKeyListener_Handler")]
public virtual Void SetOnKeyListener (IDialogInterfaceOnKeyListener onKeyListener)

Parameters

onKeyListener

Remarks

Sets the callback that will be called if a key is dispatched to the dialog.

[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