Screen helpers · interface

FullscreenConditions

What the decision needs to know. Every field is observed, none of it inferred.

Explained in Recording and clips.

interface FullscreenConditions
import type { FullscreenConditions } from '@driftengine/core';

Properties

NameTypeDescription
coarsePointerreadonlybooleanA handheld, decided by the pointer rather than by the user agent string.
More

(pointer: coarse) is the property that actually matters — a finger, no hover, no window to speak of — and unlike a UA sniff it is right about a tablet, right about a phone in desktop-site mode, and right about a laptop with a touchscreen that is being driven by its trackpad.

supportedreadonlybooleanWhether the API exists here at all. False on iPhone Safari.
alreadyFullscreenreadonlybooleanAlready filling the screen: asking again is a no-op that can still reject.
askedBeforereadonlybooleanAsked once already this page load, granted or not. See the header.