Share via


IAdapter.GetItemId(Int32) Method

Definition

Get the row id associated with the specified position in the list.

[Android.Runtime.Register("getItemId", "(I)J", "GetGetItemId_IHandler:Android.Widget.IAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public long GetItemId (int position);
[<Android.Runtime.Register("getItemId", "(I)J", "GetGetItemId_IHandler:Android.Widget.IAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetItemId : int -> int64

Parameters

position
Int32

The position of the item within the adapter's data set whose row id we want.

Returns

The id of the item at the specified position.

Attributes

Remarks

Get the row id associated with the specified position in the list.

Java documentation for android.widget.Adapter.getItemId(int).

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