ListUpdateCallback

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.

Inheritors

Functions

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