ListUpdateCallback
interface ListUpdateCallback
AdapterListUpdateCallback |
ListUpdateCallback that dispatches update events to the given adapter. |
BatchingListUpdateCallback |
Wraps a |
SortedList.Callback |
The class that controls the behavior of the |
SortedList.BatchedCallback |
A callback implementation that can batch notify events dispatched by the SortedList. |
SortedListAdapterCallback |
A |
An interface that can receive Update operations that are applied to a list.
This class can be used together with DiffUtil to detect changes between two lists.
Summary
Public functions |
|
|---|---|
Unit |
Called when |
Unit |
onInserted(position: Int, count: Int)Called when |
Unit |
Called when an item changes its position in the list. |
Unit |
Called when |
Public functions
onChanged
fun onChanged(position: Int, count: Int, payload: Any?): Unit
Called when count number of items are updated at the given position.
onInserted
fun onInserted(position: Int, count: Int): Unit
Called when count number of items are inserted at the given position.