setEmojiReaction

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

Sets message reaction data.

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. since 1.1.0


open fun setEmojiReaction(@NonNull reactionList: List<Reaction>, @NonNull totalEmojiList: List<Emoji>, @Nullable emojiReactionClickListener: OnItemClickListener<String>, @Nullable emojiReactionLongClickListener: OnItemLongClickListener<String>, @Nullable moreButtonClickListener: View.OnClickListener)

Sets message reaction data with total emoji count allowed for the message.

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 (.

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.