SuggestedMentionListAdapter

SuggestedMentionListAdapter provides a binding from a User type data set to views that are displayed within a RecyclerView. since 3.0.0

Constructors

Link copied to clipboard
Constructor since 3.0.
Link copied to clipboard
open fun SuggestedMentionListAdapter(showUserId: Boolean)
Constructor

Functions

Link copied to clipboard
open fun getItem(position: Int): User
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<User>
Returns the < in the data set held by the adapter.
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
open fun onBindViewHolder(@NonNull holder: BaseViewHolder<User>, position: Int)
Link copied to clipboard
open fun onCreateViewHolder(@NonNull parent: ViewGroup, viewType: Int): BaseViewHolder<User>
Called when RecyclerView needs a new of the given type to represent an item.
Link copied to clipboard
open fun setItems(@NonNull userList: List<User>)
Sets the < to be displayed.
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<User>)
Register a callback to be invoked when the profile view is clicked.