MessageComposerInputParams

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

Parameters for ChatComponentFactory.MessageComposerInput.

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.

Constructors

Link copied to clipboard
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)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val onCancel: () -> 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