RecyclerBinderUpdateCallback

An implementation of ListUpdateCallback that generates the relevant Components when an item is inserted/updated.

The user of this API is expected to provide a ComponentRenderer implementation to build a Component from a generic model object.

Constructors

Link copied to clipboard
constructor(prevData: List<out T>, nextData: List<out T>, componentRenderer: RecyclerBinderUpdateCallback.ComponentRenderer<T>, recyclerBinder: RecyclerBinder)
constructor(prevData: List<out T>, nextData: List<out T>, componentRenderer: RecyclerBinderUpdateCallback.ComponentRenderer<T>, operationExecutor: RecyclerBinderUpdateCallback.OperationExecutor)

Types

Link copied to clipboard
Link copied to clipboard
interface ComponentRenderer<T>
Link copied to clipboard
open class Operation
Link copied to clipboard

Functions

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