AdapterListUpdateCallback

ListUpdateCallback that dispatches update events to the given adapter.

See also

Constructors

Link copied to clipboard
constructor(@NonNull adapter: RecyclerView.Adapter)
Creates an AdapterListUpdateCallback that will dispatch update events to the given adapter.

Functions

Link copied to clipboard
open fun onChanged(position: Int, count: Int, payload: Any)
Called when count} number of items are updated at the given position.
Link copied to clipboard
open fun onInserted(position: Int, count: Int)
Called when count} number of items are inserted at the given position.
Link copied to clipboard
open fun onMoved(fromPosition: Int, toPosition: Int)
Called when an item changes its position in the list.
Link copied to clipboard
open fun onRemoved(position: Int, count: Int)
Called when count} number of items are removed from the given position.