lightbulb_outline Please take our October 2018 developer survey. Start survey
added in version 22.1.0
belongs to Maven artifact com.android.support:recyclerview-v7:28.0.0-alpha1

RecyclerView.AdapterDataObserver

public static abstract class RecyclerView.AdapterDataObserver
extends Object

java.lang.Object
   ↳ android.support.v7.widget.RecyclerView.AdapterDataObserver


Observer base class for watching changes to an RecyclerView.Adapter. See registerAdapterDataObserver(AdapterDataObserver).

Summary

Public constructors

RecyclerView.AdapterDataObserver()

Public methods

void onChanged()
void onItemRangeChanged(int positionStart, int itemCount, Object payload)
void onItemRangeChanged(int positionStart, int itemCount)
void onItemRangeInserted(int positionStart, int itemCount)
void onItemRangeMoved(int fromPosition, int toPosition, int itemCount)
void onItemRangeRemoved(int positionStart, int itemCount)

Inherited methods

From class java.lang.Object

Public constructors

RecyclerView.AdapterDataObserver

added in version 22.1.0
RecyclerView.AdapterDataObserver ()

Public methods

onChanged

added in version 22.1.0
void onChanged ()

onItemRangeChanged

added in version 24.1.0
void onItemRangeChanged (int positionStart, 
                int itemCount, 
                Object payload)

Parameters
positionStart int

itemCount int

payload Object

onItemRangeChanged

added in version 22.1.0
void onItemRangeChanged (int positionStart, 
                int itemCount)

Parameters
positionStart int

itemCount int

onItemRangeInserted

added in version 22.1.0
void onItemRangeInserted (int positionStart, 
                int itemCount)

Parameters
positionStart int

itemCount int

onItemRangeMoved

added in version 22.1.0
void onItemRangeMoved (int fromPosition, 
                int toPosition, 
                int itemCount)

Parameters
fromPosition int

toPosition int

itemCount int

onItemRangeRemoved

added in version 22.1.0
void onItemRangeRemoved (int positionStart, 
                int itemCount)

Parameters
positionStart int

itemCount int