Sign up (with export icon)

EnvType

Api-interface icon interface

A namespace containing environment and browser information.

Properties

  • Chevron-right icon

    Environment features information.

  • Chevron-right icon

    isAndroid : boolean
    readonly

    Indicates that the application is running on Android mobile device.

  • Indicates that the application is running in a browser using the Blink engine.

  • Chevron-right icon

    isGecko : boolean
    readonly

    Indicates that the application is running in Firefox (Gecko).

  • Chevron-right icon

    isMac : boolean
    readonly

    Indicates that the application is running on Macintosh.

  • Chevron-right icon

    isMediaForcedColors : boolean
    readonly

    Indicates that the user agent has enabled a forced colors mode (e.g. Windows High Contrast mode).

    Note that the value of this property is evaluated each time it is accessed, and it may change over time, if the environment settings have changed.

  • Chevron-right icon

    isMotionReduced : boolean
    readonly

    Indicates that "prefer reduced motion" browser setting is active.

    Note that the value of this property is evaluated each time it is accessed, and it may change over time, if the environment settings have changed.

  • Chevron-right icon

    isSafari : boolean
    readonly

    Indicates that the application is running in Safari.

  • Chevron-right icon

    isWindows : boolean
    readonly

    Indicates that the application is running on Windows.

  • Chevron-right icon

    isiOS : boolean
    readonly

    Indicates that the application is running in iOS.