setEmojiReaction

fun setEmojiReaction(reactionList: List<Reaction>, emojiReactionClickListener: OnItemClickListener<String>?, emojiReactionLongClickListener: OnItemLongClickListener<String>?, moreButtonClickListener: View.OnClickListener?)

Sets message reaction data.

Since

3.12.0

Parameters

reactionList

List of reactions which the message has.

emojiReactionClickListener

The callback to be invoked when the emoji reaction is clicked and held.

emojiReactionLongClickListener

The callback to be invoked when the emoji reaction is long clicked and held.

moreButtonClickListener

The callback to be invoked when the emoji reaction more button is clicked and held.


override fun setEmojiReaction(reactionList: List<Reaction>, totalEmojiList: List<Emoji>, emojiReactionClickListener: OnItemClickListener<String>?, emojiReactionLongClickListener: OnItemLongClickListener<String>?, moreButtonClickListener: View.OnClickListener?)

Sets message reaction data.

Since

3.20.0

Parameters

reactionList

List of reactions which the message has.

totalEmojiList

The total list of emojis allowed for this message. This value is used to compare whether add button should be displayed from the reactions view. Defaults to EmojiManager.allEmojis.

emojiReactionClickListener

The callback to be invoked when the emoji reaction is clicked and held.

emojiReactionLongClickListener

The callback to be invoked when the emoji reaction is long clicked and held.

moreButtonClickListener

The callback to be invoked when the emoji reaction more button is clicked and held.