CompositionContext
-
Cmn
abstract class CompositionContext
Recomposer |
The scheduler for performing recomposition and applying updates to one or more |
A CompositionContext is an opaque type that is used to logically "link" two compositions together. The CompositionContext instance represents a reference to the "parent" composition in a specific position of that composition's tree, and the instance can then be given to a new "child" composition. This reference ensures that invalidations and CompositionLocals flow logically through the two compositions as if they were not separate.
The "parent" of a root composition is a Recomposer.
| See also | |
|---|---|
rememberCompositionContext |
Summary
Public functions |
||
|---|---|---|
abstract CancellationHandle |
scheduleFrameEndCallback(action: () -> Unit) |
Cmn
|
Public properties |
||
|---|---|---|
abstract CoroutineContext |
The |
Cmn
|
Public functions
scheduleFrameEndCallback
abstract fun scheduleFrameEndCallback(action: () -> Unit): CancellationHandle
Public properties
effectCoroutineContext
abstract val effectCoroutineContext: CoroutineContext
The CoroutineContext with which effects for the composition will be executed in.