State

interface State<out T>(source)

Represents a value that can be observed by the framework.

When a State is read within a reactive scope (like a view block), the scope becomes a dependency of that state and will be notified when the value changes.

Inheritors

Properties

Link copied to clipboard
abstract val value: T

The current value of the state.

Functions

Link copied to clipboard
operator fun <T> State<T>.getValue(thisRef: Any?, property: KProperty<*>): T

Delegate for reading State values using the by keyword.