micro_utils.dokka
0.15.1

# StateFlowBasedRecyclerViewAdapter

abstract class StateFlowBasedRecyclerViewAdapter<T>(listeningScope: CoroutineScope, dataState: StateFlow<List<T>>) : RecyclerViewAdapter<T>

## Constructors

StateFlowBasedRecyclerViewAdapter
Link copied to clipboard
fun <T> StateFlowBasedRecyclerViewAdapter(listeningScope: CoroutineScope, dataState: StateFlow<List<T>>)

## Functions

bindViewHolder
Link copied to clipboard
fun bindViewHolder(@NonNull p0: AbstractViewHolder<T>, p1: Int)
createViewHolder
Link copied to clipboard
@NonNull
fun createViewHolder(@NonNull p0: ViewGroup, p1: Int): AbstractViewHolder<T>
findRelativeAdapterPositionIn
Link copied to clipboard
open fun findRelativeAdapterPositionIn(@NonNull p0: RecyclerView.Adapter<out RecyclerView.ViewHolder>, @NonNull p1: RecyclerView.ViewHolder, p2: Int): Int
getItemCount
Link copied to clipboard
open override fun getItemCount(): Int
getItemId
Link copied to clipboard
open fun getItemId(p0: Int): Long
getItemViewType
Link copied to clipboard
open fun getItemViewType(p0: Int): Int
getStateRestorationPolicy
Link copied to clipboard
@NonNull
fun getStateRestorationPolicy(): RecyclerView.Adapter.StateRestorationPolicy
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(p0: Int)
fun notifyItemChanged(p0: Int, @Nullable p1: Any?)
notifyItemInserted
Link copied to clipboard
fun notifyItemInserted(p0: Int)
notifyItemMoved
Link copied to clipboard
fun notifyItemMoved(p0: Int, p1: Int)
notifyItemRangeChanged
Link copied to clipboard
fun notifyItemRangeChanged(p0: Int, p1: Int)
fun notifyItemRangeChanged(p0: Int, p1: Int, @Nullable p2: Any?)
notifyItemRangeInserted
Link copied to clipboard
fun notifyItemRangeInserted(p0: Int, p1: Int)
notifyItemRangeRemoved
Link copied to clipboard
fun notifyItemRangeRemoved(p0: Int, p1: Int)
notifyItemRemoved
Link copied to clipboard
fun notifyItemRemoved(p0: Int)
onAttachedToRecyclerView
Link copied to clipboard
open fun onAttachedToRecyclerView(@NonNull p0: RecyclerView)
onBindViewHolder
Link copied to clipboard
open override fun onBindViewHolder(holder: AbstractViewHolder<T>, position: Int)
open fun onBindViewHolder(@NonNull p0: AbstractViewHolder<T>, p1: Int, @NonNull p2: MutableList<Any>)
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 p0: RecyclerView)
onFailedToRecycleView
Link copied to clipboard
open fun onFailedToRecycleView(@NonNull p0: AbstractViewHolder<T>): Boolean
onViewAttachedToWindow
Link copied to clipboard
open fun onViewAttachedToWindow(@NonNull p0: AbstractViewHolder<T>)
onViewDetachedFromWindow
Link copied to clipboard
open fun onViewDetachedFromWindow(@NonNull p0: AbstractViewHolder<T>)
onViewRecycled
Link copied to clipboard
open fun onViewRecycled(@NonNull p0: AbstractViewHolder<T>)
registerAdapterDataObserver
Link copied to clipboard
open fun registerAdapterDataObserver(@NonNull p0: RecyclerView.AdapterDataObserver)
setHasStableIds
Link copied to clipboard
open fun setHasStableIds(p0: Boolean)
setStateRestorationPolicy
Link copied to clipboard
open fun setStateRestorationPolicy(@NonNull p0: RecyclerView.Adapter.StateRestorationPolicy)
unregisterAdapterDataObserver
Link copied to clipboard
open fun unregisterAdapterDataObserver(@NonNull p0: RecyclerView.AdapterDataObserver)

## Properties

data
Link copied to clipboard
protected open override var data: List<T>
dataCountState
Link copied to clipboard
val dataCountState: StateFlow<Int>
emptyView
Link copied to clipboard
var emptyView: View?