evaluate

abstract fun evaluate(content: UiScope.() -> Unit): Element(source)

Evaluates one deferred callback with the captured profile active.

Return

the exact emitted root.

Parameters

content

callback that must emit exactly one root element.

Throws

when content emits zero or multiple roots.

when called from a thread other than its owner.