BasePagingAdapter
open class BasePagingAdapter<T : Any>(var mContext: Context, factories: MutableList<ItemHolder.HolderFactory<T>>, diffCallback: ItemDiffUtil<T>) : PagingDataAdapter<ItemWrapper<T>, ItemHolder<T>> , ItemClickListener<T>
Since
1.2.0
Constructors
Link copied to clipboard
constructor(mContext: Context, factories: MutableList<ItemHolder.HolderFactory<T>>, diffCallback: ItemDiffUtil<T>)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Register a callback to be invoked when the item is clicked.
Link copied to clipboard
Register a callback to be invoked when the item is clicked and held.
Link copied to clipboard
suspend fun submitData(pagingData: PagingData<T>, @LayoutRes id: Int, scope: ItemWrapper<T>.() -> Unit = {})
Present a PagingData until it is invalidated by a call to refresh or PagingSource.invalidate.
fun submitData(lifecycle: Lifecycle, pagingData: PagingData<T>, @LayoutRes id: Int, scope: ItemWrapper<T>.() -> Unit = {})
Present a PagingData until it is either invalidated or another call to submitData is made.