Screen helpers · function

mountSplash

Put the badge up, and hand back the two verbs that take it down.

Explained in Recording and clips.

function mountSplash(options?: SplashOptions): MountedSplash | null
import { mountSplash } from '@driftengine/core';

Parameters

ParameterTypeDescription
options?SplashOptions

In depth

Returns null when the conditions say no, so a caller can ?.present() without asking twice. Nothing here runs per frame: present is called once by the renderer's first endFrame and the clock is a single setTimeout, not a requestAnimationFrame watch.