My Message View Holder
open class MyMessageViewHolder( parent: ViewGroup, val contentView: View, messageListUIParams: MessageListUIParams, binding: <Error class: unknown class> = SbViewMyMessageBinding.inflate(
LayoutInflater.from(parent.context.toComponentListContextThemeWrapper()),
)) : MessageViewHolder, EmojiReactionHandler
Content copied to clipboard
This ViewHolder has a basic message template for 'My message.' To use it, inherit from this ViewHolder, inflate the view corresponding to the content, and pass it to the constructor.
Since
3.12.0
See also
Constructors
Link copied to clipboard
fun MyMessageViewHolder( parent: ViewGroup, contentView: View, messageListUIParams: MessageListUIParams, binding: <Error class: unknown class> = SbViewMyMessageBinding.inflate(
LayoutInflater.from(parent.context.toComponentListContextThemeWrapper()),
))
Content copied to clipboard
Functions
Link copied to clipboard
open override fun bind( channel: BaseChannel, message: BaseMessage, params: MessageListUIParams)
Content copied to clipboard
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
override fun setEmojiReaction( reactionList: List<Reaction>, emojiReactionClickListener: OnItemClickListener<String>?, emojiReactionLongClickListener: OnItemLongClickListener<String>?, moreButtonClickListener: View.OnClickListener?)
Content copied to clipboard
Sets message reaction data.