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
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()),
))
Functions
Link 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
fun setEmojiReaction(reactionList: List<Reaction>, emojiReactionClickListener: OnItemClickListener<String>?, emojiReactionLongClickListener: OnItemLongClickListener<String>?, moreButtonClickListener: View.OnClickListener?)
override fun setEmojiReaction(reactionList: List<Reaction>, totalEmojiList: List<Emoji>, emojiReactionClickListener: OnItemClickListener<String>?, emojiReactionLongClickListener: OnItemLongClickListener<String>?, moreButtonClickListener: View.OnClickListener?)
Sets message reaction data.