MessageComposerParams

data class MessageComposerParams(val messageComposerState: MessageComposerState, val input: @Composable RowScope.(MessageComposerState) -> Unit, val modifier: Modifier = Modifier, val isAttachmentPickerVisible: Boolean = false, val onSendMessage: (String, List<Attachment>) -> Unit = { _, _ -> }, val onAttachmentsClick: () -> Unit = {}, val onValueChange: (String) -> Unit = {}, val onAttachmentRemoved: (Attachment) -> Unit = {}, val onCancelAction: () -> Unit = {}, val onUserSelected: (User) -> Unit = {}, val onCommandSelected: (Command) -> Unit = {}, val onAlsoSendToChannelSelected: (Boolean) -> Unit = {}, val onActiveCommandDismiss: () -> Unit = {}, val recordingActions: AudioRecordingActions = AudioRecordingActions.None, val onLinkPreviewClick: (LinkPreview) -> Unit? = null, val onCancelLinkPreviewClick: () -> Unit? = null)

Parameters for ChatComponentFactory.MessageComposer.

Parameters

messageComposerState

The current state of the message composer.

input

The composable input content.

modifier

Modifier for styling.

isAttachmentPickerVisible

Whether the attachment picker is visible.

onSendMessage

Action invoked when a message is sent.

onAttachmentsClick

Action invoked when attachments button is clicked.

onValueChange

Action invoked when the input value changes.

onAttachmentRemoved

Action invoked when an attachment is removed.

onCancelAction

Action invoked when the cancel button is clicked.

onUserSelected

Action invoked when a user is selected.

onCommandSelected

Action invoked when a command is selected.

onAlsoSendToChannelSelected

Action invoked when also-send-to-channel is changed.

onActiveCommandDismiss

Action invoked when the active command is dismissed.

recordingActions

The actions to control the audio recording.

onLinkPreviewClick

Action invoked when a link preview is clicked.

onCancelLinkPreviewClick

Action invoked when the cancel link preview button is clicked.

Constructors

Link copied to clipboard
constructor(messageComposerState: MessageComposerState, input: @Composable RowScope.(MessageComposerState) -> Unit, modifier: Modifier = Modifier, isAttachmentPickerVisible: Boolean = false, onSendMessage: (String, List<Attachment>) -> Unit = { _, _ -> }, onAttachmentsClick: () -> Unit = {}, onValueChange: (String) -> Unit = {}, onAttachmentRemoved: (Attachment) -> Unit = {}, onCancelAction: () -> Unit = {}, onUserSelected: (User) -> Unit = {}, onCommandSelected: (Command) -> Unit = {}, onAlsoSendToChannelSelected: (Boolean) -> Unit = {}, onActiveCommandDismiss: () -> Unit = {}, recordingActions: AudioRecordingActions = AudioRecordingActions.None, onLinkPreviewClick: (LinkPreview) -> Unit? = null, onCancelLinkPreviewClick: () -> 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
val onCancelAction: () -> Unit
Link copied to clipboard
val onCancelLinkPreviewClick: () -> Unit? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard