Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
data class MessageComposerState @JvmOverloads constructor(val inputValue: String = "", val attachments: List<Attachment> = emptyList(), val action: MessageAction? = null, val validationErrors: List<ValidationError> = emptyList(), val mentionSuggestions: List<User> = emptyList(), val commandSuggestions: List<Command> = emptyList(), val linkPreview: LinkPreview? = null, val coolDownTime: Int = 0, val messageMode: MessageMode = MessageMode.Normal, val alsoSendToChannel: Boolean = false, val ownCapabilities: Set<String> = setOf(), val hasCommands: Boolean = false, val currentUser: User? = null, val recording: RecordingState = RecordingState.Idle, val pollsEnabled: Boolean = false, val sendEnabled: Boolean = true, val selectedMentions: Set<Mention> = emptySet(), val activeCommand: Command? = null)
Represents the state within the message input.
Link copied to clipboard
interface MessageComposerViewEvent
One-shot side-effect events emitted by the composer. Consumers typically collect these from io.getstream.chat.android.ui.common.feature.messages.composer.MessageComposerController.events and react with transient UI (e.g. a snackbar).
Link copied to clipboard
Link copied to clipboard
Represents a validation error for the user input.
Functions
Link copied to clipboard
fun RecordingState.Recording.copy(duration: Int = this.durationInMs, waveform: List<Float> = this.waveform): RecordingState.Recording
Link copied to clipboard
Link copied to clipboard
Returns a new list with commands available for action first, followed by unavailable ones. The sort is stable, so the original order is preserved within each availability group.