CollectionUpdateCallback

class CollectionUpdateCallback<T>(val prevData: List<T>?, val nextData: List<T>?, renderer: (index: Int, model: T) -> RenderInfo) : ListUpdateCallback

This class aims to generate the changeset between two lists of data and create the corresponding RenderInfo for later use.

Constructors

Link copied to clipboard
constructor(prevData: List<T>?, nextData: List<T>?, renderer: (index: Int, model: T) -> RenderInfo)

Properties

Link copied to clipboard
val nextData: List<T>?
Link copied to clipboard
val prevData: List<T>?

Functions

Link copied to clipboard
open override fun onChanged(position: Int, count: Int, payload: Any?)
Link copied to clipboard
open override fun onInserted(position: Int, count: Int)
Link copied to clipboard
open override fun onMoved(fromPosition: Int, toPosition: Int)
Link copied to clipboard
open override fun onRemoved(position: Int, count: Int)