Package com. devbase. presentation. recyclerview. pagination

Types

Link copied to clipboard
abstract class DevRecyclerViewPaginationAdapter<model : Any> : PagingDataAdapter<model, DevItemViewHolder<model>>

androidx.recyclerview.widget.RecyclerView adapter that inherit PagingDataAdapter used to display paginated data

Link copied to clipboard
class DevRecyclerViewPaginationConfiguration<model : Any>(    var layoutManager: RecyclerView.LayoutManager? = null,     var devAdapter: DevRecyclerViewPaginationAdapter<model>? = null,     var onClickListener: (model?) -> Unit? = null,     var ongLongClickListener: (model?) -> Unit? = null)

Class for containing RecyclerView configuration in extension function

Link copied to clipboard
class GeneralDiffUtil<data : Any> : DiffUtil.ItemCallback<data>

DiffUtil used for Pagination in DevRecyclerViewPaginationAdapter

Link copied to clipboard
typealias PaginationDeclaration<model> = DevRecyclerViewPaginationConfiguration<model>.() -> Unit

type Alias for builder pattern