EmojiReactionList

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.

useMoreButton

Whether to show the more button.

modifier

The modifier to be applied to the list.

onEmojiReactionClick

The handler for when an emoji is clicked.

onEmojiReactionLongClick

The handler for when an emoji is long clicked.

onEmojiReactionMoreButtonClick

The handler for when the more button is clicked.

emojiReactionItem

The composable function that provides the emoji item.

emojiReactionMoreButton

The composable function that provides the more button.