AlertDialog.Builder.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;)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
- onKeyListener
- IDialogInterfaceOnKeyListener
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.