Package 

Class MessageContentKt

    • Method Summary

      Modifier and Type Method Description
      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, Function2<Message, String, Unit> onLinkClick, MessageContentFactory messageContentFactory, Function1<MediaGalleryPreviewResult, Unit> onMediaGalleryPreviewResult, Function0<Unit> giphyEphemeralContent, Function0<Unit> deletedMessageContent, Function0<Unit> regularMessageContent) Represents the default message content within the bubble that can show different UI based on the message state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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, Function2<Message, String, Unit> onLinkClick, MessageContentFactory messageContentFactory, Function1<MediaGalleryPreviewResult, Unit> onMediaGalleryPreviewResult, Function0<Unit> giphyEphemeralContent, Function0<Unit> deletedMessageContent, Function0<Unit> regularMessageContent)

        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.
        messageContentFactory - Factory for creating message content.
        onMediaGalleryPreviewResult - Handler when the user selects an option in the Media Gallery Preview screen.
        giphyEphemeralContent - Composable that represents the default Giphy message content.
        deletedMessageContent - Composable that represents the default content of a deleted message.
        regularMessageContent - Composable that represents the default regular message content, such as attachments and text.