Android.App.AlertDialog.SetButton Method
Set a listener to be invoked when the positive button of the dialog is pressed.

Syntax

[Android.Runtime.Register("setButton", "(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V", "GetSetButton_ILjava_lang_CharSequence_Landroid_content_DialogInterface_OnClickListener_Handler")]
public virtual void SetButton (int whichButton, Java.Lang.ICharSequence text, Android.Content.IDialogInterfaceOnClickListener listener)

Parameters

whichButton
Which button to set the listener on, can be one of Android.Content.DialogInterface.ButtonPositive, Android.Content.DialogInterface.ButtonNegative, or Android.Content.DialogInterface.ButtonNeutral
text
The text to display in positive button.
listener
The Android.Content.IDialogInterfaceOnClickListener to use.

Remarks

Set a listener to be invoked when the positive button of the dialog is pressed.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3