MessageListComponent

open class MessageListComponent : BaseMessageListComponent<LA>

This class creates and performs a view corresponding the message list area in Sendbird UIKit. since 3.0.0

Constructors

Link copied to clipboard
open fun MessageListComponent()
Constructor since 3.0.

Types

Link copied to clipboard
open class Params : BaseMessageListComponent.Params
A collection of parameters, which can be applied to a default View.

Functions

Link copied to clipboard
open fun getParams(): MessageListComponent.Params
Returns a collection of parameters applied to this component.
Link copied to clipboard
open fun notifyChannelChanged(@NonNull channel: GroupChannel)
Handles a new channel when data has changed.
Link copied to clipboard
open fun onFormSubmitButtonClicked(@NonNull message: BaseMessage, @NonNull form: Form)
Called when the form submit button is clicked.
Link copied to clipboard
protected open fun onListItemClicked(    @NonNull view: View,     @NonNull identifier: String,     position: Int,     @NonNull message: BaseMessage)
Called when the message item is clicked.
Link copied to clipboard
protected open fun onListItemLongClicked(    @NonNull view: View,     @NonNull identifier: String,     position: Int,     @NonNull message: BaseMessage)
Called when the message item is long-clicked.
Link copied to clipboard
protected open fun onQuoteReplyMessageClicked(    @NonNull view: View,     position: Int,     @NonNull message: BaseMessage)
Called when the quoted message of the message is clicked.
Link copied to clipboard
protected open fun onQuoteReplyMessageLongClicked(    @NonNull view: View,     position: Int,     @NonNull message: BaseMessage)
Called when the quoted message of the message is long-clicked.
Link copied to clipboard
protected open fun onSuggestedRepliesClicked(    @NonNull view: View,     position: Int,     @NonNull suggestedReply: String)
Called when the suggested replies button is clicked.
Link copied to clipboard
protected open fun onThreadInfoClicked(    @NonNull view: View,     position: Int,     @NonNull message: BaseMessage)
Called when the thread info of the message is clicked.
Link copied to clipboard
open fun setAdapter(@NonNull adapter: MessageListAdapter)
Sets the message list adapter to provide child views on demand.
Link copied to clipboard
open fun setFormSubmitButtonClickListener(@Nullable formSubmitButtonClickListener: FormSubmitButtonClickListener)
Register a callback to be invoked when the button to submit the form is clicked.
Link copied to clipboard
open fun setOnQuoteReplyMessageClickListener(@Nullable quoteReplyMessageClickListener: OnItemClickListener<BaseMessage>)
Register a callback to be invoked when the quoted message is clicked.
Link copied to clipboard
open fun setOnQuoteReplyMessageLongClickListener(@Nullable quoteReplyMessageLongClickListener: OnItemLongClickListener<BaseMessage>)
Register a callback to be invoked when the quoted message is long-clicked.
Link copied to clipboard
open fun setOnThreadInfoClickListener(@Nullable threadInfoClickListener: OnItemClickListener<BaseMessage>)
Register a callback to be invoked when the thread info is clicked.
Link copied to clipboard
open fun setSuggestedRepliesClickListener(@Nullable suggestedRepliesClickListener: OnItemClickListener<String>)
Register a callback to be invoked when the suggested replies button is clicked.