ComposerInputTrailingContentParams
constructor(text: String, isGenerating: Boolean, speechToTextState: SpeechToTextButtonState, onPermissionDenied: () -> Unit)
Parameters
text
The text currently in the input field.
isGenerating
Whether the AI is currently generating a response.
speechToTextState
The composer's speech-to-text state. The default content passes it to SpeechToTextButton, whose transcript the composer writes into the field.
onPermissionDenied
Called when the microphone permission is denied. The composer shows a message that links to the app's settings.