SelectionTracker.SelectionObserver

public static abstract class SelectionTracker.SelectionObserver
extends Object

java.lang.Object
   ↳ androidx.recyclerview.selection.SelectionTracker.SelectionObserver<K>


Observer class providing access to information about Selection state changes.

Summary

Public constructors

SelectionObserver()

Public methods

void onItemStateChanged(K key, boolean selected)

Called when the state of an item has been changed.

void onSelectionChanged()

Called immediately after completion of any set of changes, excluding those resulting in calls to onSelectionRefresh() and onSelectionRestored().

void onSelectionRefresh()

Called when the underlying data set has changed.

void onSelectionRestored()

Called immediately after selection is restored.

Inherited methods

Public constructors

SelectionObserver

public SelectionObserver ()

Public methods

onItemStateChanged

public void onItemStateChanged (K key, 
                boolean selected)

Called when the state of an item has been changed.

Parameters
key K