Google is committed to advancing racial equity for Black communities. See how.

StateRecord

abstract class StateRecord
kotlin.Any
   ↳ androidx.compose.runtime.snapshots.StateRecord

Snapshot local value of a state object.

Summary

Public constructors

Snapshot local value of a state object.

Public methods
abstract Unit

Copy the value into this state record from another for the same state object.

abstract StateRecord

Create a new state record for the same state object.

Inherited extension functions
From androidx.compose.runtime.snapshots
T

Return the current readable state record for the current snapshot.

T
T.readable(state: StateObject, snapshot: Snapshot)

Return the current readable state record for the snapshot.

R
T.withCurrent(block: (r: T) -> R)

Provides a block with the current record, without notifying any read observers.

R
T.writable(state: StateObject, snapshot: Snapshot, block: T.() -> R)

Call block with a writable state record for snapshot of the given record.

R
T.writable(state: StateObject, block: T.() -> R)

Call block with a writable state record for the given record.

Public constructors

<init>

StateRecord()

Snapshot local value of a state object.

Public methods

assign

abstract fun assign(value: StateRecord): Unit

Copy the value into this state record from another for the same state object.

create

abstract fun create(): StateRecord

Create a new state record for the same state object.