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 linkPreviews: List<LinkPreview> = emptyList(), 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)

Represents the state within the message input.

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