Other Message View Holder
open class OtherMessageViewHolder(parent: ViewGroup, val contentView: View? = null, messageListUIParams: MessageListUIParams, val binding: <Error class: unknown class> = SbViewOtherMessageBinding.inflate(
LayoutInflater.from(parent.context.toComponentListContextThemeWrapper())
)) : MessageViewHolder, EmojiReactionHandler
This ViewHolder has a basic message template for 'Other 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 OtherMessageViewHolder(parent: ViewGroup, contentView: View? = null, messageListUIParams: MessageListUIParams, binding: <Error class: unknown class> = SbViewOtherMessageBinding.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.