다음을 통해 공유


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);
[<Android.Runtime.Register("setOnKeyListener", "(Landroid/content/DialogInterface$OnKeyListener;)V", "GetSetOnKeyListener_Landroid_content_DialogInterface_OnKeyListener_Handler")>]
abstract member SetOnKeyListener : Android.Content.IDialogInterfaceOnKeyListener -> unit
override this.SetOnKeyListener : Android.Content.IDialogInterfaceOnKeyListener -> unit

Parameters

Attributes

Remarks

Java documentation for android.app.Dialog.setOnKeyListener(android.content.OnKeyListener).

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