IDialogInterfaceOnClickListener.OnClick(IDialogInterface, Int32) Method

Definition

This method will be invoked when a button in the dialog is clicked.

[Android.Runtime.Register("onClick", "(Landroid/content/DialogInterface;I)V", "GetOnClick_Landroid_content_DialogInterface_IHandler:Android.Content.IDialogInterfaceOnClickListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnClick (Android.Content.IDialogInterface? dialog, int which);
[<Android.Runtime.Register("onClick", "(Landroid/content/DialogInterface;I)V", "GetOnClick_Landroid_content_DialogInterface_IHandler:Android.Content.IDialogInterfaceOnClickListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnClick : Android.Content.IDialogInterface * int -> unit

Parameters

dialog
IDialogInterface

the dialog that received the click

which
Int32

the button that was clicked (ex. DialogInterface#BUTTON_POSITIVE) or the position of the item clicked

Attributes

Remarks

This method will be invoked when a button in the dialog is clicked.

Java documentation for android.content.DialogInterface.OnClickListener.onClick(android.content.DialogInterface, int).

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