Package 

Class ReactionOptionsKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit ReactionOptions(List<Reaction> ownReactions, Function1<ReactionOptionItemState, Unit> onReactionOptionSelected, Function0<Unit> onShowMoreReactionsSelected, Modifier modifier, Integer numberOfReactionsShown, Arrangement.Horizontal horizontalArrangement, Map<String, ReactionIcon> reactionTypes, @DrawableRes() Integer showMoreReactionsIcon, Function2<RowScope, ReactionOptionItemState, Unit> itemContent, Function3<RowScope, Function0<Unit>, Integer, Unit> showMore) Displays all available reactions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • ReactionOptions

        @Composable() final static Unit ReactionOptions(List<Reaction> ownReactions, Function1<ReactionOptionItemState, Unit> onReactionOptionSelected, Function0<Unit> onShowMoreReactionsSelected, Modifier modifier, Integer numberOfReactionsShown, Arrangement.Horizontal horizontalArrangement, Map<String, ReactionIcon> reactionTypes, @DrawableRes() Integer showMoreReactionsIcon, Function2<RowScope, ReactionOptionItemState, Unit> itemContent, Function3<RowScope, Function0<Unit>, Integer, Unit> showMore)

        Displays all available reactions.

        Parameters:
        ownReactions - A list of user's own reactions.
        onReactionOptionSelected - Handler that propagates click events on each item.
        onShowMoreReactionsSelected - Handler that propagates clicks on the show more button.
        modifier - Modifier for styling.
        numberOfReactionsShown - The maximum number of reactions shown before the show more reactions button is displayed.
        horizontalArrangement - Used for changing the arrangement.
        reactionTypes - All available reactions.
        showMoreReactionsIcon - Drawable resource used for the show more button.
        itemContent - Composable that allows the user to customize the individual items shown in ReactionOptions.
        showMore - Composable that allows the user to customize the show more button.