Share via


AlertDialog.SetButton3 Method

Definition

Overloads

SetButton3(ICharSequence, IDialogInterfaceOnClickListener)
Obsolete.

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

SetButton3(ICharSequence, Message)
Obsolete.

This member is deprecated.

SetButton3(ICharSequence, EventHandler<DialogClickEventArgs>)
SetButton3(String, IDialogInterfaceOnClickListener)
Obsolete.

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

SetButton3(String, Message)
Obsolete.

This member is deprecated.

SetButton3(String, EventHandler<DialogClickEventArgs>)

SetButton3(ICharSequence, IDialogInterfaceOnClickListener)

Caution

deprecated

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

[Android.Runtime.Register("setButton3", "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V", "GetSetButton3_Ljava_lang_CharSequence_Landroid_content_DialogInterface_OnClickListener_Handler")]
[System.Obsolete("deprecated")]
public virtual void SetButton3 (Java.Lang.ICharSequence? text, Android.Content.IDialogInterfaceOnClickListener? listener);
[<Android.Runtime.Register("setButton3", "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V", "GetSetButton3_Ljava_lang_CharSequence_Landroid_content_DialogInterface_OnClickListener_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetButton3 : Java.Lang.ICharSequence * Android.Content.IDialogInterfaceOnClickListener -> unit
override this.SetButton3 : Java.Lang.ICharSequence * Android.Content.IDialogInterfaceOnClickListener -> unit

Parameters

text
ICharSequence

The text to display in button 3.

listener
IDialogInterfaceOnClickListener

The DialogInterface.OnClickListener to use.

Attributes

Remarks

Java documentation for android.app.AlertDialog.setButton3(java.lang.CharSequence, android.content.OnClickListener).

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

SetButton3(ICharSequence, Message)

Caution

deprecated

This member is deprecated.

[Android.Runtime.Register("setButton3", "(Ljava/lang/CharSequence;Landroid/os/Message;)V", "GetSetButton3_Ljava_lang_CharSequence_Landroid_os_Message_Handler")]
[System.Obsolete("deprecated")]
public virtual void SetButton3 (Java.Lang.ICharSequence? text, Android.OS.Message? msg);
[<Android.Runtime.Register("setButton3", "(Ljava/lang/CharSequence;Landroid/os/Message;)V", "GetSetButton3_Ljava_lang_CharSequence_Landroid_os_Message_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetButton3 : Java.Lang.ICharSequence * Android.OS.Message -> unit
override this.SetButton3 : Java.Lang.ICharSequence * Android.OS.Message -> unit

Parameters

text
ICharSequence

The text to display in button 3.

msg
Message
Attributes

Remarks

This member is deprecated. Use #setButton(int, CharSequence, Message) with DialogInterface#BUTTON_NEUTRAL.

Java documentation for android.app.AlertDialog.setButton3(java.lang.CharSequence, android.os.Message).

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

SetButton3(ICharSequence, EventHandler<DialogClickEventArgs>)

public void SetButton3 (Java.Lang.ICharSequence text, EventHandler<Android.Content.DialogClickEventArgs> handler);
member this.SetButton3 : Java.Lang.ICharSequence * EventHandler<Android.Content.DialogClickEventArgs> -> unit

Parameters

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.

Applies to

SetButton3(String, IDialogInterfaceOnClickListener)

Caution

deprecated

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

[System.Obsolete("deprecated")]
public void SetButton3 (string? text, Android.Content.IDialogInterfaceOnClickListener? listener);
[<System.Obsolete("deprecated")>]
member this.SetButton3 : string * Android.Content.IDialogInterfaceOnClickListener -> unit

Parameters

text
String

The text to display in button 3.

listener
IDialogInterfaceOnClickListener

The DialogInterface.OnClickListener to use.

Attributes

Remarks

Java documentation for android.app.AlertDialog.setButton3(java.lang.CharSequence, android.content.OnClickListener).

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

SetButton3(String, Message)

Caution

deprecated

This member is deprecated.

[System.Obsolete("deprecated")]
public void SetButton3 (string? text, Android.OS.Message? msg);
[<System.Obsolete("deprecated")>]
member this.SetButton3 : string * Android.OS.Message -> unit

Parameters

text
String

The text to display in button 3.

msg
Message
Attributes

Remarks

This member is deprecated. Use #setButton(int, CharSequence, Message) with DialogInterface#BUTTON_NEUTRAL.

Java documentation for android.app.AlertDialog.setButton3(java.lang.CharSequence, android.os.Message).

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

SetButton3(String, EventHandler<DialogClickEventArgs>)

public void SetButton3 (string text, EventHandler<Android.Content.DialogClickEventArgs> handler);
member this.SetButton3 : string * EventHandler<Android.Content.DialogClickEventArgs> -> unit

Parameters

text
String

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.

Applies to