Emoji Reaction List
fun EmojiReactionList(message: UikitBaseMessage, useMoreButton: Boolean, onEmojiReactionClick: (UikitBaseMessage, String, Boolean) -> Unit, onEmojiReactionLongClick: (UikitBaseMessage, UiKitReaction) -> Unit, onEmojiReactionMoreButtonClick: (UikitBaseMessage) -> Unit, modifier: Modifier = Modifier, emojiReactionItem: @Composable (UiKitReaction) -> Unit = { reaction ->
EmojiReactionItem(
reaction = reaction,
onEmojiClick = { emojiKey, isAdded ->
onEmojiReactionClick(message, emojiKey, isAdded)
},
onEmojiLongClick = {
onEmojiReactionLongClick(message, it)
},
)
}, emojiReactionMoreButton: @Composable () -> Unit = {
EmojiReactionMoreButton(onEmojiMoreClick = {
onEmojiReactionMoreButtonClick(message)
})
})
A list of emoji reactions for a message.
Since
1.2.0
Parameters
message
The message to which the reactions belong.
use More Button
Whether to show the more button.
modifier
The modifier to be applied to the list.
on Emoji Reaction Click
The handler for when an emoji is clicked.
on Emoji Reaction Long Click
The handler for when an emoji is long clicked.
on Emoji Reaction More Button Click
The handler for when the more button is clicked.
emoji Reaction Item
The composable function that provides the emoji item.
emoji Reaction More Button
The composable function that provides the more button.