MessageTextContentParams

data class MessageTextContentParams(val message: Message, val currentUser: User?, val onLongItemClick: (Message) -> Unit, val onUserMentionClick: (User) -> Unit, val modifier: Modifier = Modifier, val onLinkClick: (Message, String) -> Unit? = null, val onMentionClick: (Mention) -> Unit = {})

Parameters for ChatComponentFactory.MessageTextContent.

Parameters

message

The message containing the text.

currentUser

The currently logged in user.

onLongItemClick

Action invoked when a message is long-clicked.

onUserMentionClick

Action invoked when a user mention is clicked. Prefer onMentionClick for new code: it also fires for other mention types.

modifier

Modifier for styling.

onLinkClick

Action invoked when a link in a message is clicked.

onMentionClick

Action invoked when any mention is clicked.

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard