MessageContentParams
data class MessageContentParams(val messageItem: MessageItemState, val onLongItemClick: (Message) -> Unit = {}, val onPollUpdated: (Message, Poll) -> Unit = { _, _ -> }, val onCastVote: (Message, Poll, Option) -> Unit = { _, _, _ -> }, val onRemoveVote: (Message, Poll, Vote) -> Unit = { _, _, _ -> }, val selectPoll: (Message, Poll, PollSelectionType) -> Unit = { _, _, _ -> }, val onAddAnswer: (Message, Poll, String) -> Unit = { _, _, _ -> }, val onClosePoll: (String) -> Unit = {}, val onAddPollOption: (Poll, String) -> Unit = { _, _ -> }, val onGiphyActionClick: (GiphyAction) -> Unit = {}, val onQuotedMessageClick: (Message) -> Unit = {}, val onUserMentionClick: (User) -> Unit = {}, val onMediaGalleryPreviewResult: (MediaGalleryPreviewResult?) -> Unit = {}, val onLinkClick: (Message, String) -> Unit? = null)
Parameters for ChatComponentFactory.MessageContent.
Parameters
messageItem
The message item state.
onLongItemClick
Action invoked when a message is long-clicked.
onPollUpdated
Action invoked when a poll is updated.
onCastVote
Action invoked when a vote is cast.
onRemoveVote
Action invoked when a vote is removed.
selectPoll
Action invoked when a poll selection is made.
onAddAnswer
Action invoked when an answer is added to a poll.
onClosePoll
Action invoked when a poll is closed.
onAddPollOption
Action invoked when a poll option is added.
onGiphyActionClick
Action invoked when a Giphy action is clicked.
onQuotedMessageClick
Action invoked when a quoted message is clicked.
onUserMentionClick
Action invoked when a user mention is clicked.
onMediaGalleryPreviewResult
Action invoked with the media gallery preview result.
onLinkClick
Action invoked when a link in a message is clicked.
Constructors
Link copied to clipboard
constructor(messageItem: MessageItemState, onLongItemClick: (Message) -> Unit = {}, onPollUpdated: (Message, Poll) -> Unit = { _, _ -> }, onCastVote: (Message, Poll, Option) -> Unit = { _, _, _ -> }, onRemoveVote: (Message, Poll, Vote) -> Unit = { _, _, _ -> }, selectPoll: (Message, Poll, PollSelectionType) -> Unit = { _, _, _ -> }, onAddAnswer: (Message, Poll, String) -> Unit = { _, _, _ -> }, onClosePoll: (String) -> Unit = {}, onAddPollOption: (Poll, String) -> Unit = { _, _ -> }, onGiphyActionClick: (GiphyAction) -> Unit = {}, onQuotedMessageClick: (Message) -> Unit = {}, onUserMentionClick: (User) -> Unit = {}, onMediaGalleryPreviewResult: (MediaGalleryPreviewResult?) -> Unit = {}, onLinkClick: (Message, String) -> Unit? = null)
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard