BindingRecyclerViewAdapter

Author

skydoves (Jaewoong Eum)

A RecyclerView.Adapter that provides a way in which UI can be notified of changes. We can register an observable property using androidx.databinding.Bindable annotation and bindingProperty delegates. The getter for an observable property should be annotated with androidx.databinding.Bindable.

Constructors

BindingRecyclerViewAdapter
Link copied to clipboard
fun BindingRecyclerViewAdapter()

Functions

addOnPropertyChangedCallback
Link copied to clipboard
open override fun addOnPropertyChangedCallback(callback: Observable.OnPropertyChangedCallback?)
Adds a new Observable.OnPropertyChangedCallback to the property registry.
bindViewHolder
Link copied to clipboard
fun bindViewHolder(@NonNull() p0: T, p1: Int)
createViewHolder
Link copied to clipboard
fun createViewHolder(@NonNull() p0: ViewGroup, p1: Int): T
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getItemCount
Link copied to clipboard
abstract 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
hashCode
Link copied to clipboard
open fun hashCode(): Int
hasObservers
Link copied to clipboard
fun hasObservers(): Boolean
hasStableIds
Link copied to clipboard
fun hasStableIds(): Boolean
notifyChanged
Link copied to clipboard
open override fun notifyChanged()
Notifies listeners that all properties of this instance have changed.
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)
notifyPropertyChanged
Link copied to clipboard
open override fun notifyPropertyChanged(bindingId: Int)
Notifies a specific property has changed that matches in PropertyChangeRegistry.
open override fun notifyPropertyChanged(function: KFunction<*>)
Notifies a specific property has changed that matches in PropertyChangeRegistry.
open override fun notifyPropertyChanged(property: KProperty<*>)
Notifies a specific property has changed that matches in PropertyChangeRegistry.
onAttachedToRecyclerView
Link copied to clipboard
open fun onAttachedToRecyclerView(@NonNull() p0: RecyclerView)
onBindViewHolder
Link copied to clipboard
abstract fun onBindViewHolder(@NonNull() p0: T, p1: Int)
open fun onBindViewHolder(@NonNull() p0: T, p1: Int, @NonNull() p2: MutableList<Any>)
onCreateViewHolder
Link copied to clipboard
abstract fun onCreateViewHolder(@NonNull() p0: ViewGroup, p1: Int): T
onDetachedFromRecyclerView
Link copied to clipboard
open fun onDetachedFromRecyclerView(@NonNull() p0: RecyclerView)
onFailedToRecycleView
Link copied to clipboard
open fun onFailedToRecycleView(@NonNull() p0: T): Boolean
onViewAttachedToWindow
Link copied to clipboard
open fun onViewAttachedToWindow(@NonNull() p0: T)
onViewDetachedFromWindow
Link copied to clipboard
open fun onViewDetachedFromWindow(@NonNull() p0: T)
onViewRecycled
Link copied to clipboard
open fun onViewRecycled(@NonNull() p0: T)
registerAdapterDataObserver
Link copied to clipboard
open fun registerAdapterDataObserver(@NonNull() p0: RecyclerView.AdapterDataObserver)
removeOnPropertyChangedCallback
Link copied to clipboard
open override fun removeOnPropertyChangedCallback(callback: Observable.OnPropertyChangedCallback?)
Removes an old Observable.OnPropertyChangedCallback from the property registry.
setHasStableIds
Link copied to clipboard
open fun setHasStableIds(p0: Boolean)
toString
Link copied to clipboard
open fun toString(): String
unregisterAdapterDataObserver
Link copied to clipboard
open fun unregisterAdapterDataObserver(@NonNull() p0: RecyclerView.AdapterDataObserver)