DefaultMessageItemCenterContent
fun DefaultMessageItemCenterContent(modifier: Modifier = Modifier, messageItem: MessageItemState, messageContentFactory: MessageContentFactory = ChatTheme.messageContentFactory, onLongItemClick: (Message) -> Unit = {}, onGiphyActionClick: (GiphyAction) -> Unit = {}, onQuotedMessageClick: (Message) -> Unit = {}, onLinkClick: (Message, String) -> Unit? = null, onUserMentionClick: (User) -> Unit = {}, onMediaGalleryPreviewResult: (MediaGalleryPreviewResult?) -> Unit = {}, onPollUpdated: (Message, Poll) -> Unit, onCastVote: (Message, Poll, Option) -> Unit, onRemoveVote: (Message, Poll, Vote) -> Unit, selectPoll: (Message, Poll, PollSelectionType) -> Unit, onAddAnswer: (message: Message, poll: Poll, answer: String) -> Unit, onClosePoll: (String) -> Unit, onAddPollOption: (poll: Poll, option: String) -> Unit)
Represents the default content shown at the center of the message list item.
By default, we show a message bubble with attachments or emoji stickers if message is emoji only.
Parameters
messageItem
The message item to show the content for.
onLongItemClick
Handler when the user selects a message, on long tap.
onGiphyActionClick
Handler when the user taps on an action button in a giphy message item.
onQuotedMessageClick
Handler for quoted message click action.
onLinkClick
Handler for clicking on a link in the message.
onMediaGalleryPreviewResult
Handler when the user selects an option in the Media Gallery Preview screen.
onCastVote
Handler when a user cast a vote on an option.
onRemoveVote
Handler when a user cast a remove on an option.
onClosePoll
Handler when a user close a poll.
onAddPollOption
Handler when a user add a poll option.