ComponentEvaluator

fun interface ComponentEvaluator(source)

Retained evaluator for deferred profile-backed component content.

An evaluator snapshots the active component profile without retaining a callback-lifetime UiScope. Calls are confined to the owner thread on which the evaluator was created, may occur after the original screen callback returns, and propagate construction or validation failures unchanged. The element retaining a deferred callback owns this evaluator reference; releasing that element releases the snapshot and any platform reference reachable from it.

Functions

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

Evaluates one deferred callback with the captured profile active.