OpenChannelMessageListAdapter

open class OpenChannelMessageListAdapter : BaseMessageAdapter<T, VH>

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
open fun OpenChannelMessageListAdapter(useMessageGroupUI: Boolean)
Constructor
Link copied to clipboard
open fun OpenChannelMessageListAdapter(@Nullable channel: OpenChannel)
Constructor
Link copied to clipboard
open fun OpenChannelMessageListAdapter(@Nullable channel: OpenChannel, useMessageGroupUI: Boolean)
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
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 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: OpenChannel)
Sets channel that related with a list of messages
Link copied to clipboard
open fun setItems(@NonNull channel: OpenChannel, @NonNull messageList: List<BaseMessage>, @Nullable callback: OnMessageListUpdateHandler)
Sets the < to be displayed.
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.

Properties

Link copied to clipboard