Command

data class Command(val title: String, val subtitle: String?, val kind: CommandKind, val confirm: Boolean = false, val options: List<Command> = emptyList(), val run: () -> Unit)(source)

Constructors

Link copied to clipboard
constructor(title: String, subtitle: String?, kind: CommandKind, confirm: Boolean = false, options: List<Command> = emptyList(), run: () -> Unit)

Properties

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

When non-empty, this command is a disambiguation: the UI shows these as a "did you mean…" choice list instead of running run. Used when a contact name doesn't map to a single confident match.

Link copied to clipboard
val run: () -> Unit
Link copied to clipboard
Link copied to clipboard