Open Channel Message List Adapter
OpenChannelMessageListAdapter provides a binding from a BaseMessage set to views that are displayed within a RecyclerView. This adapter is used to be only OpenChannel. since 2.0.0
Constructors
Link copied to clipboard
Constructor
Link copied to clipboard
Constructor
Link copied to clipboard
Constructor
Link copied to clipboard
open fun OpenChannelMessageListAdapter(@Nullable channel: OpenChannel, useMessageGroupUI: Boolean, useReverseLayout: Boolean)
Constructor
Link copied to clipboard
open fun OpenChannelMessageListAdapter(@Nullable channel: OpenChannel, @NonNull messageListUIParams: MessageListUIParams)
Constructor
Functions
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 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 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.