StateHolder

interface StateHolder<out S : State<S>>

Something that can be in some state.

Inheritors

Functions

Link copied to clipboard
abstract fun getProperty(name: String): Property<*>?

Gets the property with the given name for this holder, or returns null if there is no property with the given name for this holder.

Properties

Link copied to clipboard
@get:JvmName(name = "availableProperties")
abstract val availableProperties: @Unmodifiable Collection<Property<*>>

All of the properties that can be set on the states of this holder.

Link copied to clipboard
@get:JvmName(name = "defaultState")
abstract val defaultState: S

The default state that this holder will appear in.

Link copied to clipboard
@get:JvmName(name = "states")
abstract val states: @Unmodifiable List<S>

All of the states that this holder can be in.