MessageRegularContentParams

data class MessageRegularContentParams(val message: Message, val currentUser: User?, val messageAlignment: MessageAlignment, val onLongItemClick: (Message) -> Unit, val onMediaGalleryPreviewResult: (MediaGalleryPreviewResult?) -> Unit, val onQuotedMessageClick: (Message) -> Unit, val onUserMentionClick: (User) -> Unit, val onLinkClick: (Message, String) -> Unit? = null, val onMentionClick: (Mention) -> Unit = {})

Parameters for ChatComponentFactory.MessageRegularContent.

Parameters

message

The message to display.

currentUser

The currently logged in user.

messageAlignment

The horizontal alignment of the message in the message list.

onLongItemClick

Action invoked when a message is long-clicked.

onMediaGalleryPreviewResult

Action invoked with the media gallery preview result.

onQuotedMessageClick

Action invoked when a quoted message is clicked.

onUserMentionClick

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

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?, messageAlignment: MessageAlignment, onLongItemClick: (Message) -> Unit, onMediaGalleryPreviewResult: (MediaGalleryPreviewResult?) -> Unit, onQuotedMessageClick: (Message) -> Unit, onUserMentionClick: (User) -> Unit, 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
Link copied to clipboard