-
public final class MessageContentKt
-
-
Method Summary
Modifier and Type Method Description final static UnitMessageContent(Message message, User currentUser, Modifier modifier, Function1<Message, Unit> onLongItemClick, Function1<GiphyAction, Unit> onGiphyActionClick, Function1<Message, Unit> onQuotedMessageClick, Function1<User, Unit> onUserMentionClick, Function1<Mention, Unit> onMentionClick, MessageAlignment messageAlignment, Function2<Message, String, Unit> onLinkClick, Function1<MediaGalleryPreviewResult, Unit> onMediaGalleryPreviewResult)Represents the default message content within the bubble that can show different UI based on the message state. -
-
Method Detail
-
MessageContent
@Composable() final static Unit MessageContent(Message message, User currentUser, Modifier modifier, Function1<Message, Unit> onLongItemClick, Function1<GiphyAction, Unit> onGiphyActionClick, Function1<Message, Unit> onQuotedMessageClick, Function1<User, Unit> onUserMentionClick, Function1<Mention, Unit> onMentionClick, MessageAlignment messageAlignment, Function2<Message, String, Unit> onLinkClick, Function1<MediaGalleryPreviewResult, Unit> onMediaGalleryPreviewResult)
Represents the default message content within the bubble that can show different UI based on the message state.
- Parameters:
message- The message to show.currentUser- The currently logged in user.modifier- Modifier for styling.onLongItemClick- Handler when the item is long clicked.onGiphyActionClick- Handler for Giphy actions.onQuotedMessageClick- Handler for quoted message click action.onLinkClick- Handler for clicking on a link in the message.onMediaGalleryPreviewResult- Handler when the user selects an option in the Media Gallery Preview screen.
-
-
-
-