AdapterListUpdateCallback

public final class AdapterListUpdateCallback
extends Object implements ListUpdateCallback

java.lang.Object
   ↳ androidx.recyclerview.widget.AdapterListUpdateCallback


ListUpdateCallback that dispatches update events to the given adapter.

Summary

Public constructors

AdapterListUpdateCallback(Adapter adapter)

Creates an AdapterListUpdateCallback that will dispatch update events to the given adapter.

Public methods

void onChanged(int position, int count, Object payload)

Called when count number of items are updated at the given position.

void onInserted(int position, int count)

Called when count number of items are inserted at the given position.

void onMoved(int fromPosition, int toPosition)

Called when an item changes its position in the list.

void onRemoved(int position, int count)

Called when count number of items are removed from the given position.

Inherited methods