Package 

Class MessageBubbleKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit MessageBubble(Color color, Shape shape, Modifier modifier, BorderStroke border, PaddingValues contentPadding, Function0<Unit> content) Wraps the content of a message in a bubble.
      final static Color getMessageBubbleColor(Message message, Boolean ownsMessage) Determines the background color of the message bubble based on the message content and ownership.
      • Methods inherited from class java.lang.Object

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

      • MessageBubble

        @Composable() final static Unit MessageBubble(Color color, Shape shape, Modifier modifier, BorderStroke border, PaddingValues contentPadding, Function0<Unit> content)

        Wraps the content of a message in a bubble.

        Parameters:
        color - The color of the bubble.
        shape - The shape of the bubble.
        modifier - Modifier for styling.
        border - The optional border of the bubble.
        contentPadding - Padding values to be applied to the content inside the bubble.
        content - The content of the message.
      • getMessageBubbleColor

        @Composable() final static Color getMessageBubbleColor(Message message, Boolean ownsMessage)

        Determines the background color of the message bubble based on the message content and ownership.

        Parameters:
        message - The message data.
        ownsMessage - Indicates if the current user owns the message.