Package-level declarations

Types

Link copied to clipboard
data class AttachmentMetaData(var uri: Uri? = null, var type: String? = null, var mimeType: String? = null, var title: String? = null, var file: File? = null, var extraData: Map<String, Any> = mapOf())

A model for the currently selected attachment item.

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

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
sealed class RecordingState
Link copied to clipboard
sealed class ValidationError

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

Whether this Command is selectable in the composer given the currently-active composer action:

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.