RecyclerBinderAdapterDelegate

A delegation that is used to customize the adapter behaviour for the RecyclerView that the RecyclerBinder uses.

Functions

Link copied to clipboard
abstract fun getItemId(position: Int): Long
The same function as getItemId.
Link copied to clipboard
abstract fun hasStableIds(): Boolean
The same function as hasStableIds.
Link copied to clipboard
abstract fun onBindViewHolder(viewHolder: T, position: Int, @Nullable componentTree: ComponentTree, renderInfo: RenderInfo)
The same function as onBindViewHolder but with two additional parameters, {@param componentTree} and {@param renderInfo}, which are useful to the LithoView.
Link copied to clipboard
abstract fun onCreateViewHolder(parent: ViewGroup, viewType: Int): T
The same function as onCreateViewHolder.
Link copied to clipboard
abstract fun onViewRecycled(viewHolder: T)
The same function as onViewRecycled.