MessageComposerInputParams

constructor(state: MessageComposerState, modifier: Modifier = Modifier, onInputChanged: (String) -> Unit = {}, onAttachmentRemoved: (Attachment) -> Unit = {}, onCancel: () -> Unit = {}, onSendClick: (String, List<Attachment>) -> Unit = { _, _ -> }, onAlsoSendToChannelChange: (Boolean) -> Unit = {}, recordingActions: AudioRecordingActions = AudioRecordingActions.None, onActiveCommandDismiss: () -> Unit = {}, onLinkPreviewClick: (LinkPreview) -> Unit? = null, onCancelLinkPreviewClick: () -> Unit? = null)

Parameters

state

The current state of the message composer.

modifier

Modifier for styling.

onInputChanged

Action invoked when the input is changed.

onAttachmentRemoved

Action invoked when an attachment is removed.

onCancel

Action invoked when the cancel button is clicked.

onSendClick

Action invoked when the send button is clicked.

onAlsoSendToChannelChange

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

recordingActions

The actions to control the audio recording.

onActiveCommandDismiss

Action invoked when the active command is dismissed.

onLinkPreviewClick

Action invoked when a link preview is clicked.

onCancelLinkPreviewClick

Action invoked when link preview cancel is clicked.