Usability

interface Usability(source)

Represents whether a command can be used, and if it should be visible.

Types

Link copied to clipboard

Properties

Link copied to clipboard

Returns the most important un-usability reason.

Link copied to clipboard
abstract val isNotUsable: Boolean

Returns true if the command cannot be executed.

Link copied to clipboard
abstract val isNotVisible: Boolean

Returns true if the command should not be visible (in help content, for example).

Link copied to clipboard
abstract val isUsable: Boolean

Returns true if the command can be executed.

Link copied to clipboard
abstract val isVisible: Boolean

Returns true if the command should be visible, even if unusable (in help content, for example).

Link copied to clipboard

All reasons this command might be unusable/invisible.