frame

abstract fun frame(viewport: IntSize): RuntimeUiFrame(source)

Produces one immutable frame for the supplied viewport.

The viewport is converted to fixed constraints, including zero dimensions.

Return

the immutable core frame snapshot.

Parameters

viewport

the non-negative logical viewport.

Throws

when called from the wrong thread, reentrantly, or while the host is not attached.

when the frame pipeline or cleanup fails; the exact first failure remains primary with later distinct failures suppressed.


abstract fun frame(viewport: IntSize, time: FrameTime): RuntimeUiFrame(source)

Produces one immutable frame with an explicit host-clock timestamp for animated nodes.

Return

immutable core frame snapshot.

Parameters

viewport

non-negative logical viewport.

time

timestamp from the owning platform clock.