androidx.compose.runtime

State

Interface · from androidx.compose.runtime:runtime:1.12.1

No hand-written docs yet.

A value holder where reads to the value property during the execution of a Composable function, the current RecomposeScope will be subscribed to changes of that value.

interface State<out T>

Kinds of State

Anywhere a State is expected, you can pass any of these.

How to get one

Ready-made values and functions that return it

Or create one of the kinds listed above.

Properties

value

val value: T
Library docs

A value holder where reads to the value property during the execution of a Composable function, the current RecomposeScope will be subscribed to changes of that value.