SelectAdaptor

class SelectAdaptor(val callback: (Any) -> Unit) : NoStateAdapter<SelectData> (source)

Constructors

Link copied to clipboard
constructor(callback: (Any) -> Unit)

Properties

Link copied to clipboard
val callback: (Any) -> Unit
Link copied to clipboard
open val footers: Int = 0
Link copied to clipboard
open val headers: Int = 0
Link copied to clipboard
val id: Int
Link copied to clipboard
Link copied to clipboard
open override val itemCount: Int

Functions

Link copied to clipboard
fun bindViewHolder(@NonNull holder: ViewHolderState<Any>, position: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getItem(position: Int): SelectData
Link copied to clipboard
open override fun getItemCount(): Int
Link copied to clipboard
open fun getItemId(position: Int): Long
Link copied to clipboard
fun getItemOrNull(position: Int): SelectData?
Link copied to clipboard
override fun getItemViewType(position: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun notifyItemChanged(position: Int)
fun notifyItemChanged(position: Int, @Nullable payload: Any?)
Link copied to clipboard
fun notifyItemInserted(position: Int)
Link copied to clipboard
fun notifyItemMoved(fromPosition: Int, toPosition: Int)
Link copied to clipboard
fun notifyItemRangeChanged(positionStart: Int, itemCount: Int)
fun notifyItemRangeChanged(positionStart: Int, itemCount: Int, @Nullable payload: Any?)
Link copied to clipboard
fun notifyItemRangeInserted(positionStart: Int, itemCount: Int)
Link copied to clipboard
fun notifyItemRangeRemoved(positionStart: Int, itemCount: Int)
Link copied to clipboard
fun notifyItemRemoved(position: Int)
Link copied to clipboard
override fun onAttachedToRecyclerView(recyclerView: RecyclerView)
Link copied to clipboard
open override fun onBindContent(holder: ViewHolderState<Any>, item: SelectData, position: Int)
Link copied to clipboard
open fun onBindFooter(holder: ViewHolderState<Any>)
Link copied to clipboard
open fun onBindHeader(holder: ViewHolderState<Any>)
Link copied to clipboard
override fun onBindViewHolder(holder: ViewHolderState<Any>, position: Int)
open override fun onBindViewHolder(holder: ViewHolderState<Any>, position: Int, payloads: MutableList<Any>)
Link copied to clipboard
open fun onClearView(holder: ViewHolderState<Any>)

Same as onViewRecycled, but for the purpose of cleaning the view of any relevant data.

Link copied to clipboard
open override fun onCreateContent(parent: ViewGroup): ViewHolderState<Any>
Link copied to clipboard
open fun onCreateCustomContent(parent: ViewGroup, viewType: Int): ViewHolderState<Any>
Link copied to clipboard
open fun onCreateCustomFooter(parent: ViewGroup, viewType: Int): ViewHolderState<Any>
Link copied to clipboard
open fun onCreateCustomHeader(parent: ViewGroup, viewType: Int): ViewHolderState<Any>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolderState<Any>
Link copied to clipboard
override fun onDetachedFromRecyclerView(recyclerView: RecyclerView)
Link copied to clipboard
Link copied to clipboard
open fun onUpdateContent(holder: ViewHolderState<Any>, item: SelectData, position: Int)
Link copied to clipboard
open override fun onViewAttachedToWindow(holder: ViewHolderState<Any>)
Link copied to clipboard
open override fun onViewDetachedFromWindow(holder: ViewHolderState<Any>)
Link copied to clipboard
override fun onViewRecycled(holder: ViewHolderState<Any>)
Link copied to clipboard
fun save(recyclerView: RecyclerView)
Link copied to clipboard
fun select(newIndex: Int, recyclerView: RecyclerView?)
Link copied to clipboard
open fun setHasStableIds(hasStableIds: Boolean)
Link copied to clipboard
open fun submitIncomparableList(list: List<SelectData>?, commitCallback: Runnable?)

Instantly submits a new and fresh list. This means that no changes like moves are done as we assume the new list is not the same thing as the old list, nothing is shared.

Link copied to clipboard
open fun submitList(list: Collection<SelectData>?, commitCallback: Runnable?)