androidx.compose.runtime
MutableState
Interface · from androidx.compose.runtime:runtime:1.12.1
No hand-written docs yet.
A mutable 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. When the value property is written to and changed, a recomposition of any subscribed RecomposeScopes will be scheduled. If value is written to with the same value, no recompositions will be scheduled.
interface MutableState<T> : State<T>
Is a
Functions
component1
fun component1(): T
component2
fun component2(): (T) -> Unit
Library docs
A mutable 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. When the
value property is written to and changed, a recomposition of any subscribed RecomposeScopes
will be scheduled. If value is written to with the same value, no recompositions will be
scheduled.