monitor-api - v1.8.0
    Preparing search index...

    Interface DeviceSnapshot

    Capabilities, browser, and connectivity of the device running the page.

    interface DeviceSnapshot {
        browser: BrowserInfo;
        colorScheme: "light" | "dark" | null;
        connection: ConnectionInfo;
        deviceMemory: number | null;
        hardwareConcurrency: number | null;
        language: string | null;
        offlineCount: number;
        online: boolean | null;
        reducedMotion: boolean | null;
        screen: ScreenInfo;
        timeZone: string | null;
        viewport: ViewportInfo;
    }
    Index

    Properties

    browser: BrowserInfo

    Browser name, major version, mobile flag, and operating system.

    colorScheme: "light" | "dark" | null

    Preferred color scheme from prefers-color-scheme, updated when it changes.

    connection: ConnectionInfo

    Network quality estimates, updated when the connection changes.

    deviceMemory: number | null

    Approximate device RAM in gigabytes from navigator.deviceMemory (Chromium only).

    hardwareConcurrency: number | null

    Logical processor count from navigator.hardwareConcurrency, or null before start(), outside browsers, or where the browser does not expose it.

    language: string | null

    Preferred language (navigator.language), such as en-US.

    offlineCount: number

    Number of times the connection went offline while the collector was started.

    online: boolean | null

    Whether the browser reports a network connection (navigator.onLine), or null before start(), outside browsers, or where unavailable. true means only that a network is reachable, not that the internet or your servers are.

    reducedMotion: boolean | null

    Whether the user prefers reduced motion (prefers-reduced-motion), updated when it changes.

    screen: ScreenInfo

    Screen size and device pixel ratio, read again once a resize settles.

    timeZone: string | null

    IANA time zone of the browser, such as Europe/Madrid.

    viewport: ViewportInfo

    Viewport size, read again once a resize settles.