createRuntimeUiSession

fun createRuntimeUiSession(eventSession: UiSession? = null, content: () -> Element): RuntimeUiSession(source)

Creates one owner-thread runtime UI session bridge.

Construction captures the current thread as the owner through the core session. Synchronous lifecycle, frame, and input calls must already run on that owner thread. The synchronous bridge exposes no coroutine task facility or dispatcher contract. The content lambda is retained while the session is created, attached, or detached and is released before cleanup callbacks after failure or close. Construction does not invoke content.

Return

a private implementation exposing only the runtime bridge contract.

Parameters

content

the complete declarative element description, evaluated on the owner thread at first attachment and after observed state changes.