BaseMessageListAdapter

abstract class BaseMessageListAdapter : BaseMessageAdapter<T, VH>

Constructors

Link copied to clipboard
open fun BaseMessageListAdapter(useMessageGroupUI: Boolean)
Constructor
Link copied to clipboard
open fun BaseMessageListAdapter(@Nullable channel: GroupChannel)
Constructor
Link copied to clipboard
open fun BaseMessageListAdapter(@Nullable channel: GroupChannel, useMessageGroupUI: Boolean)
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
open fun getEmojiCategories(@NonNull message: BaseMessage): List<Long>
Returns the list of com.sendbird.android.message.EmojiCategory ids which should be available for the given BaseMessage.
Link copied to clipboard
open fun getFeedbackRatingClickListener(): OnFeedbackRatingClickListener
Returns a callback to be invoked when the feedback rating is clicked.
Link copied to clipboard
open fun getItem(position: Int): BaseMessage
Returns the BaseMessage 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<BaseMessage>
Returns the < in the data set held by the adapter.
Link copied to clipboard
open fun getItemViewType(position: Int): Int
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
open fun onBindViewHolder(@NonNull holder: MessageViewHolder, position: Int)
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
open fun setChannel(@NonNull channel: GroupChannel)
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
open fun setItems(@NonNull channel: GroupChannel, @NonNull messageList: List<BaseMessage>, @Nullable callback: OnMessageListUpdateHandler)
Sets the < to be displayed.
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
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 long clicked and held.
Link copied to clipboard
open fun startAnimation(@NonNull animation: Animation, position: Int)
Animates the view holder with the corresponding position.
open fun startAnimation(@NonNull animation: Animation, messageId: Long)
Animates the view holder with the corresponding message id.

Properties

Link copied to clipboard
protected open var feedbackRatingClickListener: OnFeedbackRatingClickListener
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected val sendbirdUIKit: SendbirdUIKitContract

Inheritors

Link copied to clipboard
Link copied to clipboard