ComposerInputContentParams
data class ComposerInputContentParams(val messageData: MessageData, val isGenerating: Boolean, val onTextChange: (String) -> Unit, val onRemoveAttachment: (Uri) -> Unit, val onSendClick: () -> Unit, val onStopClick: () -> Unit, val focusRequester: FocusRequester? = null)
Parameters for ChatAiComponentFactory.ComposerInputContent.
Parameters
messageData
The message currently being composed.
isGenerating
Whether the AI is currently generating a response.
onTextChange
Called when the input text changes.
onRemoveAttachment
Called when the user removes an attachment.
onSendClick
Called when the user sends the message.
onStopClick
Called when the user stops AI generation.
focusRequester
The composer's focus requester, when its caller passed one. Attach it to the text field so the caller can put the cursor in it.
Constructors
Link copied to clipboard
constructor(messageData: MessageData, isGenerating: Boolean, onTextChange: (String) -> Unit, onRemoveAttachment: (Uri) -> Unit, onSendClick: () -> Unit, onStopClick: () -> Unit, focusRequester: FocusRequester? = null)