Why do we have getItemId and getSelectionKey if they do the same thing

Viewed 10

Here is the definition of getItemId() when enabling multiselection in a recyclerview:

Return the stable ID for the item at position

and for getSelectionKey()

return the selectionkey of an item

the selectionkey is the stable ID, isn't it? Google does not define it or is the definition hidden somewhere?

0 Answers
Related