RecyclerAsyncDiffer

The async list differ of RecyclerView.Adapter.

Parameters

callback

the diff callback.

Types

Link copied to clipboard
class Callback<E>(val areItemsTheSame: (oldItem: E, newItem: E) -> Boolean, val areContentsTheSame: (oldItem: E, newItem: E) -> Boolean, val getChangePayload: (oldItem: E, newItem: E) -> Any? = { _, _ -> null }, val detectMoves: Boolean)

The current diff callback.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The current list.

Functions

Link copied to clipboard
fun submitList(list: List<E>?, commitCallback: Runnable? = null)

Submit the current list.