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 | nullimport { mountSplash } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
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.