ComposerInputTrailingContentParams

data class ComposerInputTrailingContentParams(val text: String, val isGenerating: Boolean, val speechToTextState: SpeechToTextButtonState, val onPermissionDenied: () -> Unit)

Parameters for ChatAiComponentFactory.ComposerInputTrailingContent.

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.

Constructors

Link copied to clipboard
constructor(text: String, isGenerating: Boolean, speechToTextState: SpeechToTextButtonState, onPermissionDenied: () -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard