ComposerInputContentParams

constructor(messageData: MessageData, isGenerating: Boolean, onTextChange: (String) -> Unit, onRemoveAttachment: (Uri) -> Unit, onSendClick: () -> Unit, onStopClick: () -> Unit, focusRequester: FocusRequester? = null)

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.