Skip to main content

GetViewHealth

Since: IVPrismaUI8

virtual ViewHealth GetViewHealth(PrismaView view) noexcept = 0;

Returns a richer health state for a view than plain IsValid.

Returns

A ViewHealth value:

ValueMeaning
kUnknownThe browser backend isn't active, or view is not a currently-known handle.
kCreatingCreateView issued; the page is still mounting.
kDomReadyOnDomReady fired.
kLiveHealthy and interactive.
kLoadFailedThe page/frame failed to load.
kDomReadyTimeoutOnDomReady never fired within the watchdog window.
kUnresponsiveThe view has missed liveness pings.
kJsErrorAccumulating uncaught exceptions or console errors - not fatal on its own, but flagged.

Use case

Detecting a stuck or broken view (e.g. one that never finished loading) so you can surface a diagnostic to the player or log it, rather than a view silently sitting blank.

See also

IsValid - a plain existence check, if you don't need this level of detail.