Package-level declarations

Functions

Link copied to clipboard
fun ClusteredMessageReactions(reactions: List<MessageReactionItemState>, modifier: Modifier = Modifier, onClick: () -> Unit? = null)

Represents a reaction bubble with a list of reactions this message has.

Link copied to clipboard
fun GiphyMessageContent(message: Message, currentUser: User?, modifier: Modifier = Modifier, onGiphyActionClick: (GiphyAction) -> Unit = {})

Represents the content of an ephemeral giphy message.

Link copied to clipboard
fun MessageBubble(color: Color, shape: Shape, modifier: Modifier = Modifier, border: BorderStroke? = null, content: @Composable () -> Unit)

Wraps the content of a message in a bubble.

Link copied to clipboard
fun MessageContent(message: Message, currentUser: User?, modifier: Modifier = Modifier, onLongItemClick: (Message) -> Unit = {}, onGiphyActionClick: (GiphyAction) -> Unit = {}, onQuotedMessageClick: (Message) -> Unit = {}, onUserMentionClick: (User) -> Unit = {}, messageAlignment: MessageAlignment = MessageAlignment.Start, onLinkClick: (Message, String) -> Unit? = null, onMediaGalleryPreviewResult: (MediaGalleryPreviewResult?) -> Unit = {})

Represents the default message content within the bubble that can show different UI based on the message state.

Link copied to clipboard

Default message footer, which contains either MessageThreadFooter or the default footer, which holds the sender name and the timestamp.

Link copied to clipboard
fun MessageText(message: Message, currentUser: User?, modifier: Modifier = Modifier, onLongItemClick: (Message) -> Unit, onLinkClick: (Message, String) -> Unit? = null, onUserMentionClick: (User) -> Unit = {})

Default text element for messages, with extra styling and padding for the chat bubble.

Link copied to clipboard
fun MessageThreadFooter(participants: List<User>, text: String, messageAlignment: MessageAlignment, modifier: Modifier = Modifier, textColor: Color = ChatTheme.colors.chatTextLink)

Shows a row of participants in the message thread, if they exist.

Link copied to clipboard
fun PollMessageContent(modifier: Modifier, messageItem: MessageItemState, onCastVote: (Message, Poll, Option) -> Unit, onRemoveVote: (Message, Poll, Vote) -> Unit, selectPoll: (Message, Poll, PollSelectionType) -> Unit, onAddAnswer: (message: Message, poll: Poll, answer: String) -> Unit, onClosePoll: (String) -> Unit, onAddPollOption: (poll: Poll, option: String) -> Unit, onLongItemClick: (Message) -> Unit = {})

Message content for the poll, which distinguishes the owner and users and allows them to interact.

Link copied to clipboard
fun QuotedMessage(message: Message, currentUser: User?, modifier: Modifier = Modifier, replyMessage: Message? = null)

Wraps the quoted message into a component that shows only the sender avatar, text and single attachment preview.

Link copied to clipboard
fun SegmentedMessageReactions(reactions: List<MessageReactionItemState>, modifier: Modifier = Modifier, onClick: () -> Unit? = null)

Represents a segmented reaction layout where each reaction gets its own pill with an individual count.