Screen helpers · interface
MountedSplash
Explained in Recording and clips.
interface MountedSplashimport type { MountedSplash } from '@driftengine/core';Methods
present
present(): voidTell the badge a frame reached the screen. Cheap, and ignored after the first one.
release
release(): voidTake it down now, whatever the clock says. Idempotent.
holdUntil
holdUntil(until: PromiseLike<unknown>, capMs?: number): booleanKeep it up until until settles as well, under capMs. False once it has left.
| Parameter | Type | Description |
|---|---|---|
until | PromiseLike<unknown> | |
capMs? | number |