UserTypeListAdapter

abstract class UserTypeListAdapter<T : User?> : BaseAdapter<T, VH>

Adapters provides a binding from a User set to views that are displayed within a RecyclerView.

Functions

Link copied to clipboard
open fun getItem(position: Int): T
Returns the User in the data set held by the adapter.
Link copied to clipboard
open fun getItemCount(): Int
Returns the total number of items in the data set held by the adapter.
Link copied to clipboard
open fun getItems(): List<T>
Returns the < in the data set held by the adapter.
Link copied to clipboard
protected abstract fun getItemViewDescription(@NonNull context: Context, @NonNull user: T): String
Returns the description to be shown in item view.
Link copied to clipboard
Returns a callback to be invoked when the action view is clicked.
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 profile view is clicked.
Link copied to clipboard
protected abstract fun isCurrentUserOperator(): Boolean
Returns whether the current user is operator or not.
Link copied to clipboard
open fun onBindViewHolder(@NonNull holder: BaseViewHolder<T>, position: Int)
Link copied to clipboard
Called when RecyclerView needs a new of the given type to represent an item.
Link copied to clipboard
Register a callback to be invoked when the action view is clicked.
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
open fun setOnProfileClickListener(@Nullable profileClickListener: OnItemClickListener<T>)
Register a callback to be invoked when the profile view is clicked.
Link copied to clipboard
protected open fun setUsers(@NonNull userList: List<T>)
Sets the < to be displayed.

Inheritors

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