AlertDialog.Builder.SetMultiChoiceItems Method

Definition

Overloads

SetMultiChoiceItems(ICharSequence[], Boolean[], IDialogInterfaceOnMultiChoiceClickListener)

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<DialogMultiChoiceClickEventArgs>)
SetMultiChoiceItems(Int32, Boolean[], IDialogInterfaceOnMultiChoiceClickListener)

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<DialogMultiChoiceClickEventArgs>)
SetMultiChoiceItems(String[], Boolean[], IDialogInterfaceOnMultiChoiceClickListener)
SetMultiChoiceItems(String[], Boolean[], EventHandler<DialogMultiChoiceClickEventArgs>)
SetMultiChoiceItems(ICursor, String, String, IDialogInterfaceOnMultiChoiceClickListener)

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<DialogMultiChoiceClickEventArgs>)

SetMultiChoiceItems(ICharSequence[], Boolean[], IDialogInterfaceOnMultiChoiceClickListener)

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("setMultiChoiceItems", "([Ljava/lang/CharSequence;[ZLandroid/content/DialogInterface$OnMultiChoiceClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetMultiChoiceItems_arrayLjava_lang_CharSequence_arrayZLandroid_content_DialogInterface_OnMultiChoiceClickListener_Handler")]
public virtual Android.App.AlertDialog.Builder SetMultiChoiceItems (Java.Lang.ICharSequence[]? items, bool[] checkedItems, Android.Content.IDialogInterfaceOnMultiChoiceClickListener listener);
[<Android.Runtime.Register("setMultiChoiceItems", "([Ljava/lang/CharSequence;[ZLandroid/content/DialogInterface$OnMultiChoiceClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetMultiChoiceItems_arrayLjava_lang_CharSequence_arrayZLandroid_content_DialogInterface_OnMultiChoiceClickListener_Handler")>]
abstract member SetMultiChoiceItems : Java.Lang.ICharSequence[] * bool[] * Android.Content.IDialogInterfaceOnMultiChoiceClickListener -> Android.App.AlertDialog.Builder
override this.SetMultiChoiceItems : Java.Lang.ICharSequence[] * bool[] * Android.Content.IDialogInterfaceOnMultiChoiceClickListener -> Android.App.AlertDialog.Builder

Parameters

items
ICharSequence[]

the text of the items to be displayed in the list.

checkedItems
Boolean[]

specifies which items are checked. It should be null in which case no items are checked. If non null it must be exactly the same length as the array of items.

listener
IDialogInterfaceOnMultiChoiceClickListener

notified when an item on the list is clicked. The dialog will not be dismissed when an item is clicked. It will only be dismissed if clicked on a button, if no buttons are supplied it's up to the user to dismiss the dialog.

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

SetMultiChoiceItems(ICharSequence[], Boolean[], EventHandler<DialogMultiChoiceClickEventArgs>)

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

Parameters

items
ICharSequence[]
checkedItems
Boolean[]

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

SetMultiChoiceItems(Int32, Boolean[], IDialogInterfaceOnMultiChoiceClickListener)

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("setMultiChoiceItems", "(I[ZLandroid/content/DialogInterface$OnMultiChoiceClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetMultiChoiceItems_IarrayZLandroid_content_DialogInterface_OnMultiChoiceClickListener_Handler")]
public virtual Android.App.AlertDialog.Builder SetMultiChoiceItems (int itemsId, bool[] checkedItems, Android.Content.IDialogInterfaceOnMultiChoiceClickListener listener);
[<Android.Runtime.Register("setMultiChoiceItems", "(I[ZLandroid/content/DialogInterface$OnMultiChoiceClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetMultiChoiceItems_IarrayZLandroid_content_DialogInterface_OnMultiChoiceClickListener_Handler")>]
abstract member SetMultiChoiceItems : int * bool[] * Android.Content.IDialogInterfaceOnMultiChoiceClickListener -> Android.App.AlertDialog.Builder
override this.SetMultiChoiceItems : int * bool[] * Android.Content.IDialogInterfaceOnMultiChoiceClickListener -> Android.App.AlertDialog.Builder

Parameters

itemsId
Int32

the resource id of an array i.e. R.array.foo

checkedItems
Boolean[]

specifies which items are checked. It should be null in which case no items are checked. If non null it must be exactly the same length as the array of items.

listener
IDialogInterfaceOnMultiChoiceClickListener

notified when an item on the list is clicked. The dialog will not be dismissed when an item is clicked. It will only be dismissed if clicked on a button, if no buttons are supplied it's up to the user to dismiss the dialog.

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

SetMultiChoiceItems(Int32, Boolean[], EventHandler<DialogMultiChoiceClickEventArgs>)

public Android.App.AlertDialog.Builder? SetMultiChoiceItems (int itemsId, bool[] checkedItems, EventHandler<Android.Content.DialogMultiChoiceClickEventArgs> handler);
member this.SetMultiChoiceItems : int * bool[] * EventHandler<Android.Content.DialogMultiChoiceClickEventArgs> -> Android.App.AlertDialog.Builder

Parameters

itemsId
Int32
checkedItems
Boolean[]

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

SetMultiChoiceItems(String[], Boolean[], IDialogInterfaceOnMultiChoiceClickListener)

public Android.App.AlertDialog.Builder SetMultiChoiceItems (string[]? items, bool[] checkedItems, Android.Content.IDialogInterfaceOnMultiChoiceClickListener listener);
member this.SetMultiChoiceItems : string[] * bool[] * Android.Content.IDialogInterfaceOnMultiChoiceClickListener -> Android.App.AlertDialog.Builder

Parameters

items
String[]
checkedItems
Boolean[]

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

SetMultiChoiceItems(String[], Boolean[], EventHandler<DialogMultiChoiceClickEventArgs>)

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

Parameters

items
String[]
checkedItems
Boolean[]

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

SetMultiChoiceItems(ICursor, String, String, IDialogInterfaceOnMultiChoiceClickListener)

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("setMultiChoiceItems", "(Landroid/database/Cursor;Ljava/lang/String;Ljava/lang/String;Landroid/content/DialogInterface$OnMultiChoiceClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetMultiChoiceItems_Landroid_database_Cursor_Ljava_lang_String_Ljava_lang_String_Landroid_content_DialogInterface_OnMultiChoiceClickListener_Handler")]
public virtual Android.App.AlertDialog.Builder SetMultiChoiceItems (Android.Database.ICursor cursor, string isCheckedColumn, string labelColumn, Android.Content.IDialogInterfaceOnMultiChoiceClickListener listener);
[<Android.Runtime.Register("setMultiChoiceItems", "(Landroid/database/Cursor;Ljava/lang/String;Ljava/lang/String;Landroid/content/DialogInterface$OnMultiChoiceClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetMultiChoiceItems_Landroid_database_Cursor_Ljava_lang_String_Ljava_lang_String_Landroid_content_DialogInterface_OnMultiChoiceClickListener_Handler")>]
abstract member SetMultiChoiceItems : Android.Database.ICursor * string * string * Android.Content.IDialogInterfaceOnMultiChoiceClickListener -> Android.App.AlertDialog.Builder
override this.SetMultiChoiceItems : Android.Database.ICursor * string * string * Android.Content.IDialogInterfaceOnMultiChoiceClickListener -> Android.App.AlertDialog.Builder

Parameters

cursor
ICursor

the cursor used to provide the items.

isCheckedColumn
String

specifies the column name on the cursor to use to determine whether a checkbox is checked or not. It must return an integer value where 1 means checked and 0 means unchecked.

labelColumn
String

The column name on the cursor containing the string to display in the label.

listener
IDialogInterfaceOnMultiChoiceClickListener

notified when an item on the list is clicked. The dialog will not be dismissed when an item is clicked. It will only be dismissed if clicked on a button, if no buttons are supplied it's up to the user to dismiss the dialog.

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

SetMultiChoiceItems(ICursor, String, String, EventHandler<DialogMultiChoiceClickEventArgs>)

public Android.App.AlertDialog.Builder? SetMultiChoiceItems (Android.Database.ICursor cursor, string isCheckedColumn, string labelColumn, EventHandler<Android.Content.DialogMultiChoiceClickEventArgs> handler);
member this.SetMultiChoiceItems : Android.Database.ICursor * string * string * EventHandler<Android.Content.DialogMultiChoiceClickEventArgs> -> Android.App.AlertDialog.Builder

Parameters

cursor
ICursor
isCheckedColumn
String
labelColumn
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