OtherMessageViewHolder

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
open override fun bind(channel: BaseChannel, message: BaseMessage, 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
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.

Properties

Link copied to clipboard
protected val binding: <Error class: unknown class>
Link copied to clipboard
open val contentView: View? = null