MutableState

interface MutableState<T> : State<T>

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.

See also

Functions

component1
Link copied to clipboard
common
abstract operator fun component1(): T
component2
Link copied to clipboard
common
abstract operator fun component2(): (T) -> Unit
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String

Properties

value
Link copied to clipboard
common
abstract override var value: T

Inheritors

ProduceStateScope
Link copied to clipboard

Extensions

setValue
Link copied to clipboard
common
inline operator fun <T> MutableState<T>.setValue(thisObj: Any?, property: KProperty<*>, value: T)
Permits property delegation of vars using by for MutableState.