Enode — API Reference
    Preparing search index...

    Interface FullscreenControls

    Imperative controls + live state for the Fullscreen API on one element.

    interface FullscreenControls {
        enter: () => void;
        exit: () => void;
        isFullscreen: boolean;
        supported: boolean;
        toggle: () => void;
    }
    Index

    Properties

    enter: () => void

    Request fullscreen on the ref'd element (must be called from a user gesture).

    exit: () => void
    isFullscreen: boolean
    supported: boolean

    Whether the browser supports (and allows) the Fullscreen API.

    toggle: () => void