-
public final class MessageContainerKt
-
-
Method Summary
Modifier and Type Method Description final static UnitMessageContainer(LazyItemScope $self, MessageListItemState messageListItemState, ReactionSorting reactionSorting, MessageContentFactory messageContentFactory, 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, Function2<Message, String, Unit> onLinkClick, Function1<MediaGalleryPreviewResult, Unit> onMediaGalleryPreviewResult, Function1<User, Unit> onUserMentionClick, Function1<Message, Unit> onReply, Function2<LazyItemScope, DateSeparatorItemState, Unit> dateSeparatorContent, Function2<LazyItemScope, UnreadSeparatorItemState, Unit> unreadSeparatorContent, Function2<LazyItemScope, ThreadDateSeparatorItemState, Unit> threadSeparatorContent, Function2<LazyItemScope, SystemMessageItemState, Unit> systemMessageContent, Function2<LazyItemScope, ModeratedMessageItemState, Unit> moderatedMessageContent, Function2<LazyItemScope, MessageItemState, Unit> messageItemContent, Function2<LazyItemScope, TypingItemState, Unit> typingIndicatorContent, Function2<LazyItemScope, EmptyThreadPlaceholderItemState, Unit> emptyThreadPlaceholderItemContent, Function2<LazyItemScope, StartOfTheChannelItemState, Unit> startOfTheChannelItemState)Represents the message item container that allows us to customize each type of item in the MessageList. -
-
Method Detail
-
MessageContainer
@Composable() final static Unit MessageContainer(LazyItemScope $self, MessageListItemState messageListItemState, ReactionSorting reactionSorting, MessageContentFactory messageContentFactory, 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, Function2<Message, String, Unit> onLinkClick, Function1<MediaGalleryPreviewResult, Unit> onMediaGalleryPreviewResult, Function1<User, Unit> onUserMentionClick, Function1<Message, Unit> onReply, Function2<LazyItemScope, DateSeparatorItemState, Unit> dateSeparatorContent, Function2<LazyItemScope, UnreadSeparatorItemState, Unit> unreadSeparatorContent, Function2<LazyItemScope, ThreadDateSeparatorItemState, Unit> threadSeparatorContent, Function2<LazyItemScope, SystemMessageItemState, Unit> systemMessageContent, Function2<LazyItemScope, ModeratedMessageItemState, Unit> moderatedMessageContent, Function2<LazyItemScope, MessageItemState, Unit> messageItemContent, Function2<LazyItemScope, TypingItemState, Unit> typingIndicatorContent, Function2<LazyItemScope, EmptyThreadPlaceholderItemState, Unit> emptyThreadPlaceholderItemContent, Function2<LazyItemScope, StartOfTheChannelItemState, Unit> startOfTheChannelItemState)
Represents the message item container that allows us to customize each type of item in the MessageList.
- Parameters:
messageListItemState- The state of the message list item.reactionSorting- The sorting of reactions for the message.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.dateSeparatorContent- Composable that represents date separators.threadSeparatorContent- Composable that represents thread separators.systemMessageContent- Composable that represents system messages.messageItemContent- Composable that represents regular messages.typingIndicatorContent- Composable that represents a typing indicator.emptyThreadPlaceholderItemContent- Composable that represents placeholders inside of an empty thread.
-
-
-
-