PagingDataAdapter

abstract class PagingDataAdapter<T, VH : RecyclerView.ViewHolder>(diffCallback: DiffUtil.ItemCallback<T>) : ListAdapter<T, VH>

ListAdapter base class for presenting paged data from fr.haan.bipak.PagingDatas in a RecyclerView.

This class is a convenience wrapper around PagingEventEmitter that implements common default behavior for listening to PagedList update callbacks.

Constructors

Link copied to clipboard
fun <T> PagingDataAdapter(diffCallback: DiffUtil.ItemCallback<T>)

Functions

Link copied to clipboard
fun bindViewHolder(@NonNull p0: VH, p1: Int)
Link copied to clipboard
fun createViewHolder(@NonNull p0: ViewGroup, p1: Int): VH
Link copied to clipboard
open fun getCurrentList(): MutableList<T>
Link copied to clipboard
open override fun getItemCount(): Int
Link copied to clipboard
open fun getItemId(p0: Int): Long
Link copied to clipboard
open fun getItemViewType(p0: Int): Int
Link copied to clipboard
fun hasObservers(): Boolean
Link copied to clipboard
fun hasStableIds(): Boolean
Link copied to clipboard
fun notifyDataSetChanged()
Link copied to clipboard
fun notifyItemChanged(p0: Int)
fun notifyItemChanged(p0: Int, @Nullable p1: Any?)
Link copied to clipboard
fun notifyItemInserted(p0: Int)
Link copied to clipboard
fun notifyItemMoved(p0: Int, p1: Int)
Link copied to clipboard
fun notifyItemRangeChanged(p0: Int, p1: Int)
fun notifyItemRangeChanged(    p0: Int,     p1: Int,     @Nullable p2: Any?)
Link copied to clipboard
fun notifyItemRangeInserted(p0: Int, p1: Int)
Link copied to clipboard
fun notifyItemRangeRemoved(p0: Int, p1: Int)
Link copied to clipboard
fun notifyItemRemoved(p0: Int)
Link copied to clipboard
open fun onAttachedToRecyclerView(@NonNull p0: RecyclerView)
Link copied to clipboard
abstract fun onBindViewHolder(@NonNull p0: VH, p1: Int)
open fun onBindViewHolder(    @NonNull p0: VH,     p1: Int,     @NonNull p2: MutableList<Any>)
Link copied to clipboard
abstract fun onCreateViewHolder(@NonNull p0: ViewGroup, p1: Int): VH
Link copied to clipboard
open fun onCurrentListChanged(@NonNull p0: MutableList<T>, @NonNull p1: MutableList<T>)
Link copied to clipboard
open fun onDetachedFromRecyclerView(@NonNull p0: RecyclerView)
Link copied to clipboard
open fun onFailedToRecycleView(@NonNull p0: VH): Boolean
Link copied to clipboard
open fun onViewAttachedToWindow(@NonNull p0: VH)
Link copied to clipboard
open fun onViewDetachedFromWindow(@NonNull p0: VH)
Link copied to clipboard
open fun onViewRecycled(@NonNull p0: VH)
Link copied to clipboard
open fun registerAdapterDataObserver(@NonNull p0: RecyclerView.AdapterDataObserver)
Link copied to clipboard
fun retry()

Retry fetching data in case of error

Link copied to clipboard
open fun setHasStableIds(p0: Boolean)
Link copied to clipboard
fun start()

Begin fetching data

Link copied to clipboard
fun stop()

Stop fetching data

Link copied to clipboard
open fun submitList(@Nullable p0: MutableList<T>?)
open fun submitList(@Nullable p0: MutableList<T>?, @Nullable p1: Runnable?)

fun submitList(list: List<T>, bottomItemOffset: Int = 0)

Submit a new list of data

Link copied to clipboard

Properties

Link copied to clipboard
val eventFlow: MutableSharedFlow<PagingViewEvent>