Package-level declarations

Types

Link copied to clipboard

Owner-thread declaration snapshot taken after the shared source cutoff and reconciliation. Identities survive compatible reconciliation and are never reused within the owning tree. The snapshot retains descriptions, including their local callbacks, and must never be sent as an object graph. A remote adapter projects it to detached data inside RuntimeUiSession.projectDeclarations.

Link copied to clipboard

Opaque identity of one committed editable-text focus interval.

Link copied to clipboard
data class RuntimeUiControl(val sequence: Long, val presentation: UiPresentation, val inputPolicy: UiInputPolicy, val interactionMode: UiInteractionMode)

Complete requested control state; a driver applies it atomically or rejects it without changing native state.

Link copied to clipboard
class RuntimeUiController(presentation: UiPresentation, inputPolicy: UiInputPolicy = UiInputPolicy.BlockAll, apply: (RuntimeUiControl) -> Unit, close: (UiCloseReason) -> Unit) : UiSession

Execution-owner-confined control state shared by native and remote sessions. Drivers acknowledge completion with applied or rejected; returning from the driver is not an acknowledgement. transaction defers controls until the outer event/lifecycle boundary returns. Driver and cleanup captures are released before terminal cleanup calls user code.

Link copied to clipboard

Test and adapter capability for opt-in work measurement on a real retained screen, without changing its declaration.

Link copied to clipboard
sealed interface RuntimeUiFrame

Immutable output of one successful runtime UI session frame.

Link copied to clipboard
class RuntimeUiInput<K : Any>(bindings: Map<K, UiGameAction>, press: (K) -> Unit, release: (K) -> Unit) : AutoCloseable

Execution-owner-confined forwarding gate for a fixed set of native bindings. Tracks at most bindings' size, releases before changing input session/policy or entering text editing, and never forwards consumed UI events. The adapter resolves actual remapped keys for each event and supplies only matching binding identities.

Link copied to clipboard

Narrow owner-thread bridge for a retained runtime UI session.

Functions

Link copied to clipboard
fun createRuntimeUiSession(eventSession: UiSession? = null, content: () -> Element): RuntimeUiSession

Creates one owner-thread runtime UI session bridge.