Package 

Class MessageItemKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit MessageItem(LazyItemScope $self, MessageListItemState messageListItemState, Function1<Message, Unit> onLongItemClick, Function1<Message, Unit> onReactionsClick, Function1<Message, Unit> onThreadClick, Function2<Message, Poll, Unit> onPollUpdated, Function3<Message, Poll, Option, Unit> onCastVote, Function3<Message, Poll, Vote, Unit> onRemoveVote, Function3<Message, Poll, PollSelectionType, Unit> selectPoll, Function3<Message, Poll, String, Unit> onAddAnswer, Function1<String, Unit> onClosePoll, Function2<Poll, String, Unit> onAddPollOption, Function1<GiphyAction, Unit> onGiphyActionClick, Function1<Message, Unit> onQuotedMessageClick, Function1<User, Unit> onUserAvatarClick, Function1<Mention, Unit> onMentionClick, Function2<Message, String, Unit> onLinkClick, Function1<MediaGalleryPreviewResult, Unit> onMediaGalleryPreviewResult, Function1<User, Unit> onUserMentionClick, Function1<Message, Unit> onReply) Represents the message item container that allows us to customize each type of item in the MessageList.
      • Methods inherited from class java.lang.Object

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

      • MessageItem

        @Composable() final static Unit MessageItem(LazyItemScope $self, MessageListItemState messageListItemState, Function1<Message, Unit> onLongItemClick, Function1<Message, Unit> onReactionsClick, Function1<Message, Unit> onThreadClick, Function2<Message, Poll, Unit> onPollUpdated, Function3<Message, Poll, Option, Unit> onCastVote, Function3<Message, Poll, Vote, Unit> onRemoveVote, Function3<Message, Poll, PollSelectionType, Unit> selectPoll, Function3<Message, Poll, String, Unit> onAddAnswer, Function1<String, Unit> onClosePoll, Function2<Poll, String, Unit> onAddPollOption, Function1<GiphyAction, Unit> onGiphyActionClick, Function1<Message, Unit> onQuotedMessageClick, Function1<User, Unit> onUserAvatarClick, Function1<Mention, Unit> onMentionClick, Function2<Message, String, Unit> onLinkClick, Function1<MediaGalleryPreviewResult, Unit> onMediaGalleryPreviewResult, Function1<User, Unit> onUserMentionClick, Function1<Message, Unit> onReply)

        Represents the message item container that allows us to customize each type of item in the MessageList.

        The content for different message item types is provided through ChatTheme.componentFactory, allowing for customization of date separators, thread separators, system messages, moderated messages, regular messages, typing indicators, empty thread placeholders, unread separators, and start of channel items.

        Parameters:
        messageListItemState - The state of the message list item.
        onLongItemClick - Handler when the user long taps on an item.
        onReactionsClick - Handler when the user taps on message reactions.
        onThreadClick - Handler when the user taps on a thread within a message item.
        onPollUpdated - Handler for updating a poll.
        onCastVote - Handler for casting a vote on an option.
        onClosePoll - Handler for closing a poll.
        onGiphyActionClick - Handler when the user taps on Giphy message actions.
        onQuotedMessageClick - Handler for quoted message click action.
        onUserAvatarClick - Handler when users avatar is clicked.
        onLinkClick - Handler for clicking on a link in the message.
        onMediaGalleryPreviewResult - Handler when the user receives a result from the Media Gallery Preview.