Share via


AlertDialog.Builder.SetItems Method

Definition

Overloads

SetItems(String[], IDialogInterfaceOnClickListener)
SetItems(String[], EventHandler<DialogClickEventArgs>)
SetItems(Int32, EventHandler<DialogClickEventArgs>)
SetItems(ICharSequence[], IDialogInterfaceOnClickListener)

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<DialogClickEventArgs>)
SetItems(Int32, IDialogInterfaceOnClickListener)

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(String[], IDialogInterfaceOnClickListener)

public Android.App.AlertDialog.Builder SetItems (string[]? items, Android.Content.IDialogInterfaceOnClickListener listener);
member this.SetItems : string[] * Android.Content.IDialogInterfaceOnClickListener -> Android.App.AlertDialog.Builder

Parameters

items
String[]

Returns

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

SetItems(String[], EventHandler<DialogClickEventArgs>)

public Android.App.AlertDialog.Builder? SetItems (string[] items, EventHandler<Android.Content.DialogClickEventArgs> handler);
member this.SetItems : string[] * EventHandler<Android.Content.DialogClickEventArgs> -> Android.App.AlertDialog.Builder

Parameters

items
String[]

Returns

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

SetItems(Int32, EventHandler<DialogClickEventArgs>)

public Android.App.AlertDialog.Builder? SetItems (int itemsId, EventHandler<Android.Content.DialogClickEventArgs> handler);
member this.SetItems : int * EventHandler<Android.Content.DialogClickEventArgs> -> Android.App.AlertDialog.Builder

Parameters

itemsId
Int32

Returns

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

SetItems(ICharSequence[], IDialogInterfaceOnClickListener)

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.

[Android.Runtime.Register("setItems", "([Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetItems_arrayLjava_lang_CharSequence_Landroid_content_DialogInterface_OnClickListener_Handler")]
public virtual Android.App.AlertDialog.Builder SetItems (Java.Lang.ICharSequence[]? items, Android.Content.IDialogInterfaceOnClickListener listener);
[<Android.Runtime.Register("setItems", "([Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetItems_arrayLjava_lang_CharSequence_Landroid_content_DialogInterface_OnClickListener_Handler")>]
abstract member SetItems : Java.Lang.ICharSequence[] * Android.Content.IDialogInterfaceOnClickListener -> Android.App.AlertDialog.Builder
override this.SetItems : Java.Lang.ICharSequence[] * Android.Content.IDialogInterfaceOnClickListener -> Android.App.AlertDialog.Builder

Parameters

items
ICharSequence[]

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.

Applies to

SetItems(ICharSequence[], EventHandler<DialogClickEventArgs>)

public Android.App.AlertDialog.Builder? SetItems (Java.Lang.ICharSequence[] items, EventHandler<Android.Content.DialogClickEventArgs> handler);
member this.SetItems : Java.Lang.ICharSequence[] * EventHandler<Android.Content.DialogClickEventArgs> -> Android.App.AlertDialog.Builder

Parameters

items
ICharSequence[]

Returns

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

SetItems(Int32, IDialogInterfaceOnClickListener)

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.

[Android.Runtime.Register("setItems", "(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetItems_ILandroid_content_DialogInterface_OnClickListener_Handler")]
public virtual Android.App.AlertDialog.Builder SetItems (int itemsId, Android.Content.IDialogInterfaceOnClickListener listener);
[<Android.Runtime.Register("setItems", "(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetItems_ILandroid_content_DialogInterface_OnClickListener_Handler")>]
abstract member SetItems : int * Android.Content.IDialogInterfaceOnClickListener -> Android.App.AlertDialog.Builder
override this.SetItems : int * Android.Content.IDialogInterfaceOnClickListener -> Android.App.AlertDialog.Builder

Parameters

itemsId
Int32

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.

Applies to