# RecyclerViewAdapter

abstract class RecyclerViewAdapter < T > : RecyclerView.Adapter < AbstractViewHolder < T >> (source)

#### Inheritors

ActionsRecyclerViewAdapter
StateFlowBasedRecyclerViewAdapter

## Constructors

RecyclerViewAdapter
Link copied to clipboard
constructor()

## Properties

dataCountState
Link copied to clipboard
val dataCountState : StateFlow< Int >
emptyView
Link copied to clipboard
var emptyView : View ?
itemCount
Link copied to clipboard
open override val itemCount : Int
stateRestorationPolicy
Link copied to clipboard
@get: NonNull
override var stateRestorationPolicy : RecyclerView.Adapter.StateRestorationPolicy

## Functions

bindViewHolder
Link copied to clipboard
fun bindViewHolder (@ NonNull holder: AbstractViewHolder < T >, position: Int )
createViewHolder
Link copied to clipboard
@ NonNull
fun createViewHolder (@ NonNull parent: ViewGroup , viewType: Int ): AbstractViewHolder < T >
findRelativeAdapterPositionIn
Link copied to clipboard
open fun findRelativeAdapterPositionIn (@ NonNull adapter: RecyclerView.Adapter <out RecyclerView.ViewHolder ?>, @ NonNull viewHolder: RecyclerView.ViewHolder , localPosition: Int ): Int
getItemCount
Link copied to clipboard
open override fun getItemCount (): Int
getItemId
Link copied to clipboard
open fun getItemId (position: Int ): Long
getItemViewType
Link copied to clipboard
open fun getItemViewType (position: Int ): Int
hasObservers
Link copied to clipboard
fun hasObservers (): Boolean
hasStableIds
Link copied to clipboard
fun hasStableIds (): Boolean
notifyDataSetChanged
Link copied to clipboard
fun notifyDataSetChanged ()
notifyItemChanged
Link copied to clipboard
fun notifyItemChanged (position: Int )
fun notifyItemChanged (position: Int , @ Nullable payload: Any ?)
notifyItemInserted
Link copied to clipboard
fun notifyItemInserted (position: Int )
notifyItemMoved
Link copied to clipboard
fun notifyItemMoved (fromPosition: Int , toPosition: Int )
notifyItemRangeChanged
Link copied to clipboard
fun notifyItemRangeChanged (positionStart: Int , itemCount: Int )
fun notifyItemRangeChanged (positionStart: Int , itemCount: Int , @ Nullable payload: Any ?)
notifyItemRangeInserted
Link copied to clipboard
fun notifyItemRangeInserted (positionStart: Int , itemCount: Int )
notifyItemRangeRemoved
Link copied to clipboard
fun notifyItemRangeRemoved (positionStart: Int , itemCount: Int )
notifyItemRemoved
Link copied to clipboard
fun notifyItemRemoved (position: Int )
onAttachedToRecyclerView
Link copied to clipboard
open fun onAttachedToRecyclerView (@ NonNull recyclerView: RecyclerView )
onBindViewHolder
Link copied to clipboard
open fun onBindViewHolder (@ NonNull holder: AbstractViewHolder < T >, position: Int , @ NonNull payloads: List < Any ?>)
open override fun onBindViewHolder (holder: AbstractViewHolder < T >, position: Int )
onCreateViewHolder
Link copied to clipboard
@ NonNull
abstract fun onCreateViewHolder (@ NonNull p0: ViewGroup , p1: Int ): AbstractViewHolder < T >
onDetachedFromRecyclerView
Link copied to clipboard
open fun onDetachedFromRecyclerView (@ NonNull recyclerView: RecyclerView )
onFailedToRecycleView
Link copied to clipboard
open fun onFailedToRecycleView (@ NonNull holder: AbstractViewHolder < T >): Boolean
onViewAttachedToWindow
Link copied to clipboard
open fun onViewAttachedToWindow (@ NonNull holder: AbstractViewHolder < T >)
onViewDetachedFromWindow
Link copied to clipboard
open fun onViewDetachedFromWindow (@ NonNull holder: AbstractViewHolder < T >)
onViewRecycled
Link copied to clipboard
open fun onViewRecycled (@ NonNull holder: AbstractViewHolder < T >)
registerAdapterDataObserver
Link copied to clipboard
open fun registerAdapterDataObserver (@ NonNull observer: RecyclerView.AdapterDataObserver )
setHasStableIds
Link copied to clipboard
open fun setHasStableIds (hasStableIds: Boolean )
unregisterAdapterDataObserver
Link copied to clipboard
open fun unregisterAdapterDataObserver (@ NonNull observer: RecyclerView.AdapterDataObserver )