- asComposableMethod
-
asContextElement
Return a SnapshotContextElement that will enter[Snapshot.
-
asDoubleState
Converts a `State<Double>` (as in, a State of boxed `Double`s) into a primitive-backed Double.
-
asFloatState
Converts a `State<Float>` (as in, a State of boxed `Float`s) into a primitive-backed Float.
-
asIntState
Converts a `State<Int>` (as in, a State of boxed `Int`s) into a primitive-backed IntState.
-
asLongState
Converts a `State<Long>` (as in, a State of boxed `Long`s) into a primitive-backed LongState.
-
cache
A Compose compiler plugin API.
-
clearCompositionErrors
Clears current composition errors in hot reload mode.
- composableLambda
- composableLambdaInstance
- composableLambdaN
- composableLambdaNInstance
-
Composition
This method is the way to initiate a composition.
-
compositionLocalOf
Create a CompositionLocal key that can be provided using CompositionLocalProvider.
-
compositionLocalWithComputedDefaultOf
Create a CompositionLocal that behaves like it was provided using [ProvidableCompositionLocal.
-
compositionLocalWithHostDefaultOf
Creates a ProvidableCompositionLocal where the default value is resolved by querying the LocalHostDefaultProvider with the given key.
-
ControlledComposition
This method is a way to initiate a composition.
-
currentCompositionErrors
Get list of errors captured in composition.
-
derivedStateOf
Creates a State object whose [State.
-
disableHotReloadMode
Disables hot reload mode in recomposer.
-
findCompositionInstance
Find the CompositionInstance associated with the root CompositionData.
-
getDeclaredComposableMethod
Find the given @Composable method by name.
-
getValue
Permits property delegation of `val`s using `by` for DoubleState.
- identityHashCode
-
illegalDecoyCallException
Used with decoys to stub the body of the decoy function.
-
invalidateGroupsWithKey
Invalidates composed groups with the given key.
-
isTraceInProgress
Internal tracing API.
-
movableContentOf
Convert a lambda into one that moves the remembered state and nodes created in a previous call to the new location it is called.
-
movableContentWithReceiverOf
Convert a lambda with a receiver into one that moves the remembered state and nodes created in a previous call to the new location it is called.
-
mutableDoubleStateOf
Return a new MutableDoubleState initialized with the passed in value
-
mutableFloatStateOf
Return a new MutableFloatState initialized with the passed in value
-
mutableIntStateOf
Return a new MutableIntState initialized with the passed in value
-
mutableLongStateOf
Return a new MutableLongState initialized with the passed in value
-
mutableStateListOf
Create a instance of MutableList<T> that is observable and can be snapshot.
-
mutableStateMapOf
Create a instance of MutableMap<K, V> that is observable and can be snapshot.
-
mutableStateOf
Return a new MutableState initialized with the passed in value
-
mutableStateSetOf
Create a instance of MutableSet<T> that is observable and can be snapshot.
-
MutableVector
Create a MutableVector with a given initial capacity.
-
mutableVectorOf
Creates an empty MutableVector with a capacity[MutableVector.
-
neverEqualPolicy
A policy never treat values of a MutableState as equivalent.
-
observe
Register an observer to be notified when a composition is added to or removed from the given Recomposer.
-
observeSnapshots
This is a tooling API and is not intended to be used in a production application as it will introduce global overhead to creating, applying and disposing all snapshots and, potent…
-
parseSourceInformation
Parses source information from a string produced by Compose compiler.
-
PausableComposition
Create a PausableComposition.
-
readable
Return the current readable state record for the current snapshot.
-
referentialEqualityPolicy
A policy to treat values of a MutableState as equivalent if they are referentially (===) equal.
-
ReusableComposition
This method is the way to initiate a reusable composition.
-
setObserver
Observe the composition.
-
setValue
Permits property delegation of `var`s using `by` for MutableDoubleState.
-
simulateHotReload
Simulates hot reload of all current compositions by disposing all composed content and restarting compositions.
-
snapshotFlow
Create a Flow from observable Snapshot state.
-
SnapshotStateList
Creates a new snapshot state list with the specified size, where each element is calculated by calling the specified init function.
-
sourceInformation
A Compose internal function.
-
sourceInformationMarkerEnd
A Compose internal function.
-
sourceInformationMarkerStart
A Compose internal function.
-
staticCompositionLocalOf
Create a CompositionLocal key that can be provided using CompositionLocalProvider.
-
structuralEqualityPolicy
A policy to treat values of a MutableState as equivalent if they are structurally (==) equal.
- toInt
-
toLong
Converts a CompositeKeyHashCode to a 64-bit Long.
-
toMutableStateList
Create an instance of MutableList<T> from a collection that is observable and can be snapshot.
-
toMutableStateMap
Create an instance of MutableMap<K, V> from a collection of pairs that is observable and can be snapshot.
-
toString
Returns a String representation of a CompositeKeyHashCode with the specified radix.
-
traceEventEnd
Internal tracing API.
- traceEventStart
-
withCurrent
Provides a block with the current record, without notifying any read observers.
-
withFrameMillis
Suspends until a new frame is requested, immediately invokes onFrame with the frame time in milliseconds in the calling context of frame dispatch, then resumes with the result fro…
-
withFrameNanos
Suspends until a new frame is requested, immediately invokes onFrame with the frame time in nanoseconds in the calling context of frame dispatch, then resumes with the result from…
-
withRunningRecomposer
Runs block with a new, active Recomposer applying changes in the calling CoroutineContext.
-
writable
Call block with a writable state record for snapshot of the given record.
Compose Runtime
Jetpack Compose API reference for runtime.