SortedListAdapterCallback

Constructors

Link copied to clipboard
constructor(adapter: RecyclerView.Adapter<out Any>)
Creates a SortedList.Callback that will forward data change events to the provided Adapter.

Functions

Link copied to clipboard
open fun onChanged(position: Int, count: Int)
Called by the SortedList when the item at the given position is updated.
open fun onChanged(position: Int, count: Int, payload: Any)
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.