Package-level declarations
Functions
Link copied to clipboard
fun ExtendedReactionsOptions(ownReactions: List<Reaction>, onReactionOptionSelected: (ReactionOptionItemState) -> Unit, modifier: Modifier = Modifier, cells: GridCells = GridCells.Fixed(DefaultNumberOfColumns), reactionTypes: Map<String, ReactionIcon> = ChatTheme.reactionIconFactory.createReactionIcons(), itemContent: @Composable LazyGridScope.(ReactionOptionItemState) -> Unit = { option ->
DefaultExtendedReactionsItemContent(
option = option,
onReactionOptionSelected = onReactionOptionSelected,
)
})
Displays all available reactions a user can set on a message.
Link copied to clipboard
Individual reaction item.
Link copied to clipboard
fun ReactionOptions(ownReactions: List<Reaction>, onReactionOptionSelected: (ReactionOptionItemState) -> Unit, onShowMoreReactionsSelected: () -> Unit, modifier: Modifier = Modifier, numberOfReactionsShown: Int = DefaultNumberOfReactionsShown, horizontalArrangement: Arrangement.Horizontal = Arrangement.SpaceBetween, reactionTypes: Map<String, ReactionIcon> = ChatTheme.reactionIconFactory.createReactionIcons(), @DrawableRes showMoreReactionsIcon: Int = R.drawable.stream_compose_ic_more, itemContent: @Composable RowScope.(ReactionOptionItemState) -> Unit = { option ->
DefaultReactionOptionItem(
option = option,
onReactionOptionSelected = onReactionOptionSelected,
)
})
Displays all available reactions.