Android Guides | Samples

Android.App.AlertDialog.Builder Class

See Also: AlertDialog+Builder

Syntax

[Android.Runtime.Register("android/app/AlertDialog$Builder", DoNotGenerateAcw=true)]
public class AlertDialog.Builder : Object

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.App.AlertDialog.Builder are listed below.

See Also: Object

Public Constructors

Constructor using a context for this builder and the AlertDialog it creates.
Constructor using a context and theme for this builder and the AlertDialog it creates.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
ContextContext. Returns a Context with the appropriate theme for dialogs created by this Builder.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Create() : AlertDialog
Creates a AlertDialog with the arguments supplied to this builder.
SetAdapter(IListAdapter, IDialogInterfaceOnClickListener) : AlertDialog+Builder
Set a list of items, which are supplied by the given IListAdapter, to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
SetAdapter(IListAdapter, EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetCancelable(Boolean) : AlertDialog+Builder
Sets whether the dialog is cancelable or not.
SetCursor(ICursor, IDialogInterfaceOnClickListener, String) : AlertDialog+Builder
Set a list of items, which are supplied by the given ICursor, to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
SetCursor(ICursor, EventHandler<Android.Content.DialogClickEventArgs>, String) : AlertDialog+Builder
SetCustomTitle(View) : AlertDialog+Builder
Set the title using the custom view customTitleView.
SetIcon(Drawable) : AlertDialog+Builder
Set the Drawable to be used in the title.
SetIcon(Int32) : AlertDialog+Builder
Set the resource id of the Drawable to be used in the title.
SetIconAttribute(Int32) : AlertDialog+Builder
Set an icon as supplied by a theme attribute. e.g. android.
SetInverseBackgroundForced(Boolean) : AlertDialog+Builder
Sets the Dialog to use the inverse background, regardless of what the contents is.
SetItems(ICharSequence[], IDialogInterfaceOnClickListener) : AlertDialog+Builder
Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
SetItems(ICharSequence[], EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetItems(Int32, IDialogInterfaceOnClickListener) : AlertDialog+Builder
Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
SetItems(Int32, EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetItems(String[], IDialogInterfaceOnClickListener) : AlertDialog+Builder
SetItems(String[], EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetMessage(ICharSequence) : AlertDialog+Builder
Set the message to display.
SetMessage(Int32) : AlertDialog+Builder
Set the message to display using the given resource id.
SetMessage(String) : AlertDialog+Builder
SetMultiChoiceItems(ICharSequence[], Boolean[], IDialogInterfaceOnMultiChoiceClickListener) : AlertDialog+Builder
Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
SetMultiChoiceItems(ICharSequence[], Boolean[], EventHandler<Android.Content.DialogMultiChoiceClickEventArgs>) : AlertDialog+Builder
SetMultiChoiceItems(Int32, Boolean[], IDialogInterfaceOnMultiChoiceClickListener) : AlertDialog+Builder
Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
SetMultiChoiceItems(Int32, Boolean[], EventHandler<Android.Content.DialogMultiChoiceClickEventArgs>) : AlertDialog+Builder
SetMultiChoiceItems(String[], Boolean[], IDialogInterfaceOnMultiChoiceClickListener) : AlertDialog+Builder
SetMultiChoiceItems(String[], Boolean[], EventHandler<Android.Content.DialogMultiChoiceClickEventArgs>) : AlertDialog+Builder
SetMultiChoiceItems(ICursor, String, String, IDialogInterfaceOnMultiChoiceClickListener) : AlertDialog+Builder
Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
SetMultiChoiceItems(ICursor, String, String, EventHandler<Android.Content.DialogMultiChoiceClickEventArgs>) : AlertDialog+Builder
SetNegativeButton(ICharSequence, IDialogInterfaceOnClickListener) : AlertDialog+Builder
Set a listener to be invoked when the negative button of the dialog is pressed.
SetNegativeButton(ICharSequence, EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetNegativeButton(Int32, IDialogInterfaceOnClickListener) : AlertDialog+Builder
Set a listener to be invoked when the negative button of the dialog is pressed.
SetNegativeButton(Int32, EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetNegativeButton(String, IDialogInterfaceOnClickListener) : AlertDialog+Builder
SetNegativeButton(String, EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetNeutralButton(ICharSequence, IDialogInterfaceOnClickListener) : AlertDialog+Builder
Set a listener to be invoked when the neutral button of the dialog is pressed.
SetNeutralButton(ICharSequence, EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetNeutralButton(Int32, IDialogInterfaceOnClickListener) : AlertDialog+Builder
Set a listener to be invoked when the neutral button of the dialog is pressed.
SetNeutralButton(Int32, EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetNeutralButton(String, IDialogInterfaceOnClickListener) : AlertDialog+Builder
SetNeutralButton(String, EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetOnCancelListener(IDialogInterfaceOnCancelListener) : AlertDialog+Builder
Sets the callback that will be called if the dialog is canceled.
SetOnDismissListener(IDialogInterfaceOnDismissListener) : AlertDialog+Builder
Sets the callback that will be called when the dialog is dismissed for any reason.
SetOnItemSelectedListener(AdapterView+IOnItemSelectedListener) : AlertDialog+Builder
Sets a listener to be invoked when an item in the list is selected.
SetOnKeyListener(IDialogInterfaceOnKeyListener) : AlertDialog+Builder
Sets the callback that will be called if a key is dispatched to the dialog.
SetPositiveButton(ICharSequence, IDialogInterfaceOnClickListener) : AlertDialog+Builder
Set a listener to be invoked when the positive button of the dialog is pressed.
SetPositiveButton(ICharSequence, EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetPositiveButton(Int32, IDialogInterfaceOnClickListener) : AlertDialog+Builder
Set a listener to be invoked when the positive button of the dialog is pressed.
SetPositiveButton(Int32, EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetPositiveButton(String, IDialogInterfaceOnClickListener) : AlertDialog+Builder
SetPositiveButton(String, EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetSingleChoiceItems(IListAdapter, Int32, IDialogInterfaceOnClickListener) : AlertDialog+Builder
Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
SetSingleChoiceItems(IListAdapter, Int32, EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetSingleChoiceItems(ICharSequence[], Int32, IDialogInterfaceOnClickListener) : AlertDialog+Builder
Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
SetSingleChoiceItems(ICharSequence[], Int32, EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetSingleChoiceItems(Int32, Int32, IDialogInterfaceOnClickListener) : AlertDialog+Builder
Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
SetSingleChoiceItems(Int32, Int32, EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetSingleChoiceItems(String[], Int32, IDialogInterfaceOnClickListener) : AlertDialog+Builder
SetSingleChoiceItems(String[], Int32, EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetSingleChoiceItems(ICursor, Int32, String, IDialogInterfaceOnClickListener) : AlertDialog+Builder
Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
SetSingleChoiceItems(ICursor, Int32, String, EventHandler<Android.Content.DialogClickEventArgs>) : AlertDialog+Builder
SetTitle(ICharSequence) : AlertDialog+Builder
Set the title displayed in the Dialog.
SetTitle(Int32) : AlertDialog+Builder
Set the title using the given resource id.
SetTitle(String) : AlertDialog+Builder
SetView(View) : AlertDialog+Builder
Set a custom view to be the contents of the Dialog.
SetView(Int32) : AlertDialog+Builder
Show() : AlertDialog
Creates a AlertDialog with the arguments supplied to this builder and Dialog.Show's the dialog.

Public Events