getItemId

open override fun getItemId(position: Int): Long

Return the stable ID for the item at position. If hasStableIds would return false this method should return RecyclerView.NO_ID.

The default implementation of this method returns RecyclerView.NO_ID.

Return

the stable ID of the item at position

Parameters

position

Adapter position to query