MessageComposerState
constructor(inputValue: String = "", attachments: List<Attachment> = emptyList(), action: MessageAction? = null, validationErrors: List<ValidationError> = emptyList(), mentionSuggestions: List<User> = emptyList(), commandSuggestions: List<Command> = emptyList(), linkPreviews: List<LinkPreview> = emptyList(), coolDownTime: Int = 0, messageMode: MessageMode = MessageMode.Normal, alsoSendToChannel: Boolean = false, ownCapabilities: Set<String> = setOf(), hasCommands: Boolean = false, currentUser: User? = null, recording: RecordingState = RecordingState.Idle)
Parameters
inputValue
The current text value that's within the input.
attachments
The currently selected attachments.
action
The currently active MessageAction.
validationErrors
The list of validation errors.
mentionSuggestions
The list of users that can be used to autocomplete the mention.
commandSuggestions
The list of commands to be displayed in the command suggestion popup.
linkPreviews
The list of links found in inputValue to be previewed.
coolDownTime
The amount of time left until the user is allowed to send the next message.
messageMode
The message mode that's currently active.
alsoSendToChannel
If the message will be shown in the channel after it is sent.
ownCapabilities
Set of capabilities the user is given for the current channel. For a full list @see ChannelCapabilities.
hasCommands
Whether there are any commands available.
currentUser
The currently logged in user.
recording
The current recording state.