SelectUserListAdapter

abstract class SelectUserListAdapter<T> : BaseAdapter<T, VH>

Constructors

Link copied to clipboard
Constructor
Link copied to clipboard
Constructor

Functions

Link copied to clipboard
open fun getItem(position: Int): T
Returns item that located given position.
Link copied to clipboard
open fun getItemCount(): Int
Link copied to clipboard
open fun getItemId(position: Int): Long
Link copied to clipboard
open fun getItems(): List<T>
Returns items which bound a RecyclerView.
Link copied to clipboard
Returns a callback to be invoked when the itemView is clicked.
Link copied to clipboard
Returns a callback to be invoked when the itemView is clicked and held.
Link copied to clipboard
Returns a callback to be invoked when the itemView is clicked.
Link copied to clipboard
Returns the list of selected user's id.
Link copied to clipboard
protected abstract fun isDisabled(@NonNull item: T): Boolean
Determines whether the item is disabled or not.
Link copied to clipboard
protected abstract fun isSelected(@NonNull item: T): Boolean
Determines whether the item is selected or not.
Link copied to clipboard
open fun onBindViewHolder(@NonNull holder: BaseViewHolder<T>, position: Int)
Link copied to clipboard
Link copied to clipboard
open fun setDisabledUserIdList(@NonNull disabledUserList: List<String>)
Sets the user's id which should disable in the list.
Link copied to clipboard
open fun setItems(@NonNull userList: List<T>)
Link copied to clipboard
Register a callback to be invoked when the itemView is clicked.
Link copied to clipboard
Register a callback to be invoked when the itemView is clicked and held.
Link copied to clipboard
Register a callback to be invoked when the itemView is clicked.
Link copied to clipboard
protected abstract fun toUserInfo(@NonNull item: T): UserInfo
Converts the given item to UserInfo.

Properties

Link copied to clipboard
protected open var disabledUserList: List<String>
Link copied to clipboard
protected open var listener: OnItemClickListener<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected open var userList: List<T>

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard