{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

androidx.compose.runtime.snapshots

Annotations

AutoboxingStateValueProperty

This annotation designates that a property on a State class will autobox when it is read from or assigned to.

StateFactoryMarker

Designates a function as a factory function that produces a State object.

Interfaces

ObserverHandle

The type returned by observer registration methods that unregisters the observer when it is disposed.

SnapshotContextElement

A CoroutineContext element that enters an associated snapshot whenever a coroutine associated with this context is resumed.

SnapshotMutableState

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.

StateObject

Interface implemented by all snapshot aware state objects.

Classes

MutableSnapshot

A snapshot of the values return by mutable states and other state objects.

Snapshot

A snapshot of the values return by mutable states and other state objects.

SnapshotApplyResult

The result of a applying a mutable snapshot.

SnapshotApplyResult.Failure
SnapshotContextElementKt
SnapshotKt
SnapshotStateList

An implementation of MutableList that can be observed and snapshot.

SnapshotStateMap

An implementation of MutableMap that can be observed and snapshot.

SnapshotStateObserver

Helper class to efficiently observe snapshot state reads.

StateRecord

Snapshot local value of a state object.

Snapshot.Companion
SnapshotApplyResult.Success
SnapshotContextElement.Key

Exceptions

SnapshotApplyConflictException

An exception that is thrown when SnapshotApplyResult.check is called on a result of a MutableSnapshot.apply that fails to apply.