rememberMutableStateOf
fun <T> rememberMutableStateOf(value: T, policy: SnapshotMutationPolicy<T> = structuralEqualityPolicy()): MutableState<T>
fun <T> rememberMutableStateOf(key1: Any?, value: T, policy: SnapshotMutationPolicy<T> = structuralEqualityPolicy()): MutableState<T>
fun <T> rememberMutableStateOf(key1: Any?, key2: Any?, value: T, policy: SnapshotMutationPolicy<T> = structuralEqualityPolicy()): MutableState<T>
fun <T> rememberMutableStateOf(key1: Any?, key2: Any?, key3: Any?, value: T, policy: SnapshotMutationPolicy<T> = structuralEqualityPolicy()): MutableState<T>
fun <T> rememberMutableStateOf(vararg keys: Any?, value: T, policy: SnapshotMutationPolicy<T> = structuralEqualityPolicy()): MutableState<T>
This is an overload for the original method. If you have any questions, please see the documentation of the original method
Remember a new MutableState initialized with the passed in value
The MutableState class is a single value holder whose reads and writes are observed by Compose. Additionally, writes to it is transacted as part of the Snapshot system.
Parameters
value
the initial value for the MutableState
policy
a policy to control how changes are handled in mutable snapshots.