Dialog.SetOnKeyListener(IDialogInterfaceOnKeyListener) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- onKeyListener
- IDialogInterfaceOnKeyListener
- 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.