ItemKeyProvider

public abstract class ItemKeyProvider
extends Object

java.lang.Object
   ↳ androidx.recyclerview.selection.ItemKeyProvider<K>


Provides selection library access to stable selection keys identifying items presented by a RecyclerView instance.

Summary

Nested classes

@interface ItemKeyProvider.Scope

 

Constants

int SCOPE_CACHED

Provides access to cached data based for items that were recently bound in the view.

int SCOPE_MAPPED

Provides access to all data, regardless of whether it is bound to a view or not.

Protected constructors

ItemKeyProvider(int scope)

Creates a new provider with the given scope.

Public methods

abstract K getKey(int position)
abstract int getPosition(K key)

Inherited methods