Dialog.SetOnKeyListener(IDialogInterfaceOnKeyListener) Dialog.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;)V", "GetSetOnKeyListener_Landroid_content_DialogInterface_OnKeyListener_Handler")]
public virtual void SetOnKeyListener (Android.Content.IDialogInterfaceOnKeyListener onKeyListener);
abstract member SetOnKeyListener : Android.Content.IDialogInterfaceOnKeyListener -> unit
override this.SetOnKeyListener : Android.Content.IDialogInterfaceOnKeyListener -> unit

Parameters

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