MessageContentParams

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)

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.