AlertDialog.Builder.SetOnKeyListener(IDialogInterfaceOnKeyListener) Method

Definition

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

[Android.Runtime.Register("setOnKeyListener", "(Landroid/content/DialogInterface$OnKeyListener;)Landroid/app/AlertDialog$Builder;", "GetSetOnKeyListener_Landroid_content_DialogInterface_OnKeyListener_Handler")]
public virtual Android.App.AlertDialog.Builder SetOnKeyListener (Android.Content.IDialogInterfaceOnKeyListener onKeyListener);
[<Android.Runtime.Register("setOnKeyListener", "(Landroid/content/DialogInterface$OnKeyListener;)Landroid/app/AlertDialog$Builder;", "GetSetOnKeyListener_Landroid_content_DialogInterface_OnKeyListener_Handler")>]
abstract member SetOnKeyListener : Android.Content.IDialogInterfaceOnKeyListener -> Android.App.AlertDialog.Builder
override this.SetOnKeyListener : Android.Content.IDialogInterfaceOnKeyListener -> Android.App.AlertDialog.Builder

Parameters

Returns

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to