ReactionsPicker
fun ReactionsPicker(message: Message, onMessageAction: (MessageAction) -> Unit, modifier: Modifier = Modifier, shape: Shape = ChatTheme.shapes.bottomSheet, overlayColor: Color = ChatTheme.colors.overlay, cells: GridCells = GridCells.Fixed(DefaultNumberOfReactions), onDismiss: () -> Unit = {}, reactionTypes: Map<String, ReactionIcon> = ChatTheme.reactionIconFactory.createReactionIcons(), headerContent: @Composable ColumnScope.() -> Unit = {}, centerContent: @Composable ColumnScope.() -> Unit = {
DefaultReactionsPickerCenterContent(
message = message,
onMessageAction = onMessageAction,
cells = cells,
reactionTypes = reactionTypes,
)
})
Displays all of the available reactions the user can set on a message.
Parameters
message
The selected message.
onMessageAction
Handler that propagates click events on each item.
modifier
Modifier for styling.
shape
Changes the shape of ReactionsPicker.
overlayColor
The color applied to the overlay.
cells
Describes the way cells are formed inside ExtendedReactionsOptions.
onDismiss
Handler called when the menu is dismissed.
reactionTypes
The available reactions.
headerContent
The content shown on the top of ReactionsPicker. By default empty.
centerContent
The content shown at the center of ReactionsPicker. By default displays all available reactions.