Screen helpers · function

fullscreenWanted

Whether to ask for fullscreen on the gesture currently being handled.

Explained in Recording and clips.

function fullscreenWanted(conditions: FullscreenConditions): boolean
import { fullscreenWanted } from '@driftengine/core';

Parameters

ParameterTypeDescription
conditionsFullscreenConditions

In depth

Pure, so all four restraints are checkable without a browser — which is the whole of this module's logic. The call itself is one line and is verified by hand, per AGENTS.md's rule that DOM is not unit-tested.