ComponentRuntimeBridge

Privileged dynamic boundary between platform-neutral screen callbacks and one runtime implementation.

Evaluation is synchronous, owner-thread confined, and restores an enclosing runtime when nested evaluation completes or fails. Application code must not invoke this bridge.

Functions

Link copied to clipboard

Returns the runtime active for the current owner-thread screen callback. The returned runtime must not escape that evaluation; deferred content uses ComponentRuntime.retainEvaluator.

Link copied to clipboard
fun evaluate(runtime: ComponentRuntime, content: UiScope.() -> Unit): Element

Evaluates one screen callback with runtime implicitly available to profile-backed component functions.