Skip to content

SurfaceHandle

A live embedded surface, returned by Platform.embedSurface. The shell brokers the nested iframe; this handle lets the host re-parameterise it in place (SurfaceHandle.update, no remount), tear it down (SurfaceHandle.close), read its reported height, and await first-ready.

readonly channelId: string | null;

The surface’s shell-minted channel id; null until the embed is accepted.


readonly height: number;

The surface’s last reported content height, in pixels.


readonly ready: Promise<void>;

Resolves when the surface has handshaked + rendered; rejects on denial/teardown.

close(): void;

Remove the surface and its iframe.

void


update(params): void;

Push new params — the surface re-renders in place (no remount).

Record<string, unknown>

void