MessageItemParams

constructor(messageListItem: MessageListItemState, onPollUpdated: (Message, Poll) -> Unit = { _, _ -> }, onCastVote: (Message, Poll, Option) -> Unit = { _, _, _ -> }, onRemoveVote: (Message, Poll, Vote) -> Unit = { _, _, _ -> }, selectPoll: (Message, Poll, PollSelectionType) -> Unit = { _, _, _ -> }, onClosePoll: (String) -> Unit = {}, onAddPollOption: (Poll, String) -> Unit = { _, _ -> }, onLongItemClick: (Message) -> Unit = {}, onThreadClick: (Message) -> Unit = {}, onReactionsClick: (Message) -> Unit = {}, onGiphyActionClick: (GiphyAction) -> Unit = {}, onMediaGalleryPreviewResult: (MediaGalleryPreviewResult?) -> Unit = {}, onQuotedMessageClick: (Message) -> Unit = {}, onUserMentionClick: (User) -> Unit = {}, onAddAnswer: (Message, Poll, String) -> Unit = { _, _, _ -> }, onReply: (Message) -> Unit = {}, onUserAvatarClick: (User) -> Unit? = null, onMessageLinkClick: (Message, String) -> Unit? = null)

Parameters

messageListItem

The message list item state.

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.

onClosePoll

Action invoked when a poll is closed.

onAddPollOption

Action invoked when a poll option is added.

onLongItemClick

Action invoked when a message is long-clicked.

onThreadClick

Action invoked when the thread is clicked.

onReactionsClick

Action invoked when reactions are clicked.

onGiphyActionClick

Action invoked when a Giphy action is 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.

onAddAnswer

Action invoked when an answer is added to a poll.

onReply

Action invoked when the reply button is clicked.

onUserAvatarClick

Action invoked when a user avatar is clicked.

onMessageLinkClick

Action invoked when a link in a message is clicked.