AbsListView.GetCheckedItemIds Method

Definition

Returns the set of checked items ids.

[Android.Runtime.Register("getCheckedItemIds", "()[J", "GetGetCheckedItemIdsHandler")]
public virtual long[]? GetCheckedItemIds ();
[<Android.Runtime.Register("getCheckedItemIds", "()[J", "GetGetCheckedItemIdsHandler")>]
abstract member GetCheckedItemIds : unit -> int64[]
override this.GetCheckedItemIds : unit -> int64[]

Returns

Int64[]

A new array which contains the id of each checked item in the list.

Attributes

Remarks

Returns the set of checked items ids. The result is only valid if the choice mode has not been set to #CHOICE_MODE_NONE and the adapter has stable IDs. (ListAdapter#hasStableIds() == true)

Java documentation for android.widget.AbsListView.getCheckedItemIds().

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