MessageComposerParams

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)

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.