MessageViewHolder

A ViewHolder describes an item view and Message about its place within the RecyclerView.

Constructors

Link copied to clipboard
open fun MessageViewHolder(@NonNull view: View)
Constructor
Link copied to clipboard
open fun MessageViewHolder(@NonNull view: View, @NonNull messageListUIParams: MessageListUIParams)

Functions

Link copied to clipboard
open fun bind(@NonNull channel: BaseChannel, @NonNull message: BaseMessage, @NonNull messageGroupType: MessageGroupType)
open fun bind(@NonNull channel: BaseChannel, @NonNull message: BaseMessage, @NonNull params: MessageListUIParams)
Binds as item view and data.
Link copied to clipboard
Returns a Map containing views to register a click event with an identifier.
Link copied to clipboard
open fun onBindViewHolder(@NonNull channel: BaseChannel, @Nullable prevMessage: BaseMessage, @NonNull message: BaseMessage, @Nullable nextMessage: BaseMessage)
Link copied to clipboard
open fun setMessageUIConfig(@Nullable messageUIConfig: MessageUIConfig)
Sets the configurations of the message's properties to highlight text.

Properties

Link copied to clipboard
protected open val isMine: Boolean
Link copied to clipboard
protected open val isNewDate: Boolean
Link copied to clipboard
protected open val isShowProfile: Boolean
Link copied to clipboard

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard