Package-level declarations

Types

Link copied to clipboard

Buffers state writes and applies them atomically to a parent snapshot or global state.

Link copied to clipboard
interface MutableState<T> : State<T>

Exposes snapshot-managed state that can be read and updated.

Link copied to clipboard
open class Snapshot : AutoCloseable

Pins a consistent, read-only view of snapshot-managed state until it is disposed.

Link copied to clipboard

Indicates that an automatic mutable-snapshot transaction encountered unmergeable changes.

Link copied to clipboard
sealed interface SnapshotApplyResult

Reports whether every buffered write from a MutableSnapshot was applied atomically.

Link copied to clipboard

Defines value equivalence and concurrent-update merging for one MutableState.

Link copied to clipboard
interface State<T>

Exposes a value whose reads participate in snapshot consistency and runtime observation.

Link copied to clipboard
object UiRuntime

Identifies the platform-neutral ViewCompose runtime artifact.

Functions

Link copied to clipboard
fun <T> derivedStateOf(block: () -> T): State<T>

Creates read-only state that computes block lazily and observes the states read by it.

Link copied to clipboard
fun <T> mutableStateOf(value: T, policy: SnapshotMutationPolicy<T> = structuralEqualityPolicy()): MutableState<T>

Creates snapshot-managed mutable state initialized with value.

Link copied to clipboard

Returns the shared policy that treats every assignment as an observable change.

Link copied to clipboard

Returns the shared policy that compares values by reference identity (===).

Link copied to clipboard

Returns the shared policy that compares values with Kotlin structural equality (==).