Package 

Class MessageItemParams

    • Constructor Detail

      • MessageItemParams

        MessageItemParams(MessageListItemState messageListItem, Function2<Message, Poll, Unit> onPollUpdated, Function3<Message, Poll, Option, Unit> onCastVote, Function3<Message, Poll, Vote, Unit> onRemoveVote, Function3<Message, Poll, PollSelectionType, Unit> selectPoll, Function1<String, Unit> onClosePoll, Function2<Poll, String, Unit> onAddPollOption, Function1<Message, Unit> onLongItemClick, Function1<Message, Unit> onThreadClick, Function1<Message, Unit> onReactionsClick, Function1<GiphyAction, Unit> onGiphyActionClick, Function1<MediaGalleryPreviewResult, Unit> onMediaGalleryPreviewResult, Function1<Message, Unit> onQuotedMessageClick, Function1<User, Unit> onUserMentionClick, Function3<Message, Poll, String, Unit> onAddAnswer, Function1<Message, Unit> onReply, Function1<User, Unit> onUserAvatarClick, Function2<Message, String, Unit> onMessageLinkClick, Function1<Mention, Unit> onMentionClick)
        Parameters:
        messageListItem - The message list item state.
        onPollUpdated - Action invoked when a poll is updated.
        onCastVote - Action invoked when a vote is cast.
        onRemoveVote - Action invoked when a vote is removed.
        selectPoll - Action invoked when a poll selection is made.
        onClosePoll - Action invoked when a poll is closed.
        onAddPollOption - Action invoked when a poll option is added.
        onLongItemClick - Action invoked when a message is long-clicked.
        onThreadClick - Action invoked when the thread is clicked.
        onReactionsClick - Action invoked when reactions are clicked.
        onGiphyActionClick - Action invoked when a Giphy action is clicked.
        onMediaGalleryPreviewResult - Action invoked with the media gallery preview result.
        onQuotedMessageClick - Action invoked when a quoted message is clicked.
        onUserMentionClick - Action invoked when a user mention is clicked.
        onAddAnswer - Action invoked when an answer is added to a poll.
        onReply - Action invoked when the reply button is clicked.
        onUserAvatarClick - Action invoked when a user avatar is clicked.
        onMessageLinkClick - Action invoked when a link in a message is clicked.
        onMentionClick - Action invoked when any mention is clicked.