SelectedReactionsMenu

fun SelectedReactionsMenu(message: Message, currentUser: User?, ownCapabilities: Set<String>, onMessageAction: (MessageAction) -> Unit, onShowMoreReactionsSelected: () -> Unit, modifier: Modifier = Modifier, shape: Shape = ChatTheme.shapes.bottomSheet, overlayColor: Color = ChatTheme.colors.overlay, reactionTypes: Map<String, ReactionIcon> = ChatTheme.reactionIconFactory.createReactionIcons(), @DrawableRes showMoreReactionsIcon: Int = R.drawable.stream_compose_ic_more, onDismiss: () -> Unit = {}, headerContent: @Composable ColumnScope.() -> Unit = { val canLeaveReaction = ownCapabilities.contains(ChannelCapabilities.SEND_REACTION) if (canLeaveReaction) { DefaultSelectedReactionsHeaderContent( message = message, reactionTypes = reactionTypes, showMoreReactionsIcon = showMoreReactionsIcon, onMessageAction = onMessageAction, onShowMoreReactionsSelected = onShowMoreReactionsSelected, ) } }, centerContent: @Composable ColumnScope.() -> Unit = { DefaultSelectedReactionsCenterContent( message = message, currentUser = currentUser, ) })

Represents the list of user reactions.

Parameters

message

The selected message.

currentUser

The currently logged in user.

ownCapabilities

Set of capabilities the user is given for the current channel. For a full list @see ChannelCapabilities.

onMessageAction

Handler that propagates click events on each item.

onShowMoreReactionsSelected

Handler that propagates clicks on the show more reactions button.

modifier

Modifier for styling.

shape

Changes the shape of SelectedReactionsMenu.

overlayColor

The color applied to the overlay.

reactionTypes

The available reactions within the menu.

showMoreReactionsIcon

Drawable resource used for the show more button.

onDismiss

Handler called when the menu is dismissed.

headerContent

The content shown at the top of the SelectedReactionsMenu dialog. By default ReactionOptions.

centerContent

The content shown in the SelectedReactionsMenu dialog. By Default UserReactions.