evaluate

fun evaluate(runtime: ComponentRuntime, content: UiScope.() -> Unit): Element(source)

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

Return

the exact emitted root element.

Parameters

runtime

owner-thread runtime implementation active only during content.

content

callback that must emit exactly one root component.

Throws

when content emits zero or multiple roots.

when content or component resolution fails; the exact failure is propagated.