Recycler View Configuration

fun <model : Any> RecyclerViewConfiguration(    layoutManager: RecyclerView.LayoutManager? = null,     devAdapter: DevRecyclerViewAdapter<model>? = null,     pagination: Boolean = false,     loadMoreListener: OnLoadMoreListener? = null,     onClickListener: (model?) -> Unit? = null,     ongLongClickListener: (model?) -> Unit? = null)

return RecyclerView Configuration

Parameters

model

Object model for the RecyclerView

devAdapter

RecyclerView Adapter from codebase

pagination

does the RecyclerView use Pagination?

loadMoreListener

Load More listener for the RecyclerView

onClickListener

Click Listener for the item

ongLongClickListener

on Long click listener for the item

Sources

Link copied to clipboard