OpenChannelMessageListComponent

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

Constructors

Link copied to clipboard
Constructor since 3.0.

Types

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

Functions

Link copied to clipboard
Returns the recycler view used in the list component by default.
Link copied to clipboard
Returns the view created by onCreateView.
Link copied to clipboard
open fun notifyChannelChanged(@NonNull channel: OpenChannel)
Notifies this component that the channel data has changed.
Link copied to clipboard
open fun notifyDataSetChanged(@NonNull messageList: List<BaseMessage>, @NonNull channel: OpenChannel, @Nullable callback: OnMessageListUpdateHandler)
Notifies this component that the data needed to draw the message list has changed.
Link copied to clipboard
open fun onCreateView(@NonNull context: Context, @NonNull inflater: LayoutInflater, @NonNull parent: ViewGroup, @Nullable args: Bundle): View
Called after the component was created to make views.
Link copied to clipboard
protected open fun onMessageClicked(@NonNull view: View, position: Int, @NonNull message: BaseMessage)
Called when the item of the message list is clicked.
Link copied to clipboard
protected open fun onMessageInserted(@NonNull message: BaseMessage)
Called when the message is inserted.
Link copied to clipboard
protected open fun onMessageLongClicked(@NonNull view: View, position: Int, @NonNull message: BaseMessage)
Called when the item of the message list is long-clicked.
Link copied to clipboard
protected open fun onMessageProfileClicked(@NonNull view: View, position: Int, @NonNull message: BaseMessage)
Called when the profile view of the message is clicked.
Link copied to clipboard
protected open fun onMessageProfileLongClicked(@NonNull view: View, position: Int, @NonNull message: BaseMessage)
Called when the profile view of the message is long-clicked.
Link copied to clipboard
protected open fun onScrollBottomButtonClicked(@NonNull view: View)
Called when the button to scroll to the bottom is clicked.
Link copied to clipboard
protected open fun onScrollFirstButtonClicked(@NonNull view: View): Boolean
Called when the button to scroll to the first position is clicked.
Link copied to clipboard
open fun scrollToBottom()
Scrolls to the bottom of the message list.
Link copied to clipboard
open fun scrollToFirst()
Scrolls to the first position of the recycler view.
Link copied to clipboard
Sets the message list adapter for OpenChannel.
Link copied to clipboard
open fun setOnMessageClickListener(@Nullable messageClickListener: OnItemClickListener<BaseMessage>)
Register a callback to be invoked when the message is clicked.
Link copied to clipboard
open fun setOnMessageInsertedListener(@Nullable messageInsertedListener: OnItemEventListener<BaseMessage>)
Register a callback to be invoked when the message is inserted.
Link copied to clipboard
open fun setOnMessageLongClickListener(@Nullable messageLongClickListener: OnItemLongClickListener<BaseMessage>)
Register a callback to be invoked when the message is long-clicked.
Link copied to clipboard
open fun setOnMessageProfileClickListener(@Nullable messageProfileClickListener: OnItemClickListener<BaseMessage>)
Register a callback to be invoked when the profile view of the message is clicked.
Link copied to clipboard
open fun setOnMessageProfileLongClickListener(@Nullable messageProfileLongClickListener: OnItemLongClickListener<BaseMessage>)
Register a callback to be invoked when the profile view of the message is long-clicked.
Link copied to clipboard
open fun setOnScrollBottomButtonClickListener(@Nullable scrollBottomButtonClickListener: View.OnClickListener)
Register a callback to be invoked when the button to scroll to the bottom is clicked.
Link copied to clipboard
open fun setOnScrollFirstButtonClickListener(@Nullable scrollFirstButtonClickListener: OnConsumableClickListener)
Register a callback to be invoked when the button to scroll to the first position is clicked.
Link copied to clipboard
open fun setPagedDataLoader(@NonNull pagedDataLoader: OnPagedDataLoader<List<BaseMessage>>)
Sets the paged data loader for open channel message list.

Properties

Link copied to clipboard