Base Message List Adapter
Constructors
Link copied to clipboard
Constructor
Link copied to clipboard
Constructor
Link copied to clipboard
Constructor
Link copied to clipboard
open fun BaseMessageListAdapter(@Nullable channel: GroupChannel, useMessageGroupUI: Boolean, useReverseLayout: Boolean)
Constructor
Link copied to clipboard
open fun BaseMessageListAdapter(@Nullable channel: GroupChannel, @NonNull messageListUIParams: MessageListUIParams)
Constructor
Functions
Link copied to clipboard
Returns the list of com.sendbird.android.message.EmojiCategory ids which should be available for the given BaseMessage.
Link copied to clipboard
Returns a callback to be invoked when the feedback rating is clicked.
Link copied to clipboard
Returns the total number of items in the data set held by the adapter.
Link copied to clipboard
Return the view type of the MessageViewHolder at
position
for the purposes of view recycling.Link copied to clipboard
Returns a callback to be invoked when the mentioned user 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 long clicked and held.
Link copied to clipboard
Called by RecyclerView to display the data at the specified position.
open fun onBindViewHolder(@NonNull holder: MessageViewHolder, position: Int, @NonNull payloads: List<Any>)
Link copied to clipboard
Called when RecyclerView needs a new MessageViewHolder of the given type to represent an item.
Link copied to clipboard
Link copied to clipboard
Sets channel that related with a list of messages
Link copied to clipboard
open fun setFeedbackRatingClickListener(@Nullable feedbackRatingClickListener: OnFeedbackRatingClickListener)
Register a callback to be invoked when the feedback rating is clicked.
Link copied to clipboard
Register a callback to be invoked when the mentioned user is clicked.
Link copied to clipboard
open fun setMessageDisplayDataProvider(@Nullable messageDisplayDataProvider: MessageDisplayDataProvider)
Sets MessageDisplayDataProvider, which is used to generate data before they are sent or rendered.
Link copied to clipboard
open fun setOnListItemClickListener(@Nullable listener: OnIdentifiableItemClickListener<BaseMessage>)
Register a callback to be invoked when the itemView is clicked.
Link copied to clipboard
open fun setOnListItemLongClickListener(@Nullable listener: OnIdentifiableItemLongClickListener<BaseMessage>)
Register a callback to be invoked when the itemView is long clicked and held.
Link copied to clipboard
Animates the view holder with the corresponding position.
Animates the view holder with the corresponding message id.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard