Interface Navigator

    Available only in secure contexts.

    interface Navigator {
        appCodeName: string;
        appName: string;
        appVersion: string;
        clipboard: Clipboard;
        cookieEnabled: boolean;
        credentials: CredentialsContainer;
        doNotTrack: string;
        geolocation: Geolocation;
        hardwareConcurrency: number;
        language: string;
        languages: readonly string[];
        locks: LockManager;
        maxTouchPoints: number;
        mediaCapabilities: MediaCapabilities;
        mediaDevices: MediaDevices;
        mediaSession: MediaSession;
        mimeTypes: MimeTypeArray;
        onLine: boolean;
        pdfViewerEnabled: boolean;
        permissions: Permissions;
        platform: string;
        plugins: PluginArray;
        product: string;
        productSub: string;
        serviceWorker: ServiceWorkerContainer;
        storage: StorageManager;
        userActivation: UserActivation;
        userAgent: string;
        vendor: string;
        vendorSub: string;
        wakeLock: WakeLock;
        webdriver: boolean;
        xr?: XRSystem;
        canShare(data?: ShareData): boolean;
        clearAppBadge(): Promise<void>;
        getGamepads(): Gamepad[];
        javaEnabled(): boolean;
        registerProtocolHandler(scheme: string, url: string | URL): void;
        requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
        requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration, any, any>): Promise<MediaKeySystemAccess>;
        requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
        sendBeacon(url: string | URL, data?: BodyInit): boolean;
        setAppBadge(contents?: number): Promise<void>;
        share(data?: ShareData): Promise<void>;
        vibrate(pattern: VibratePattern): boolean;
        vibrate(pattern: Iterable<number, any, any>): boolean;
    }
    Hierarchy

    Properties

    appCodeName: string

    MDN Reference

    appName: string

    MDN Reference

    appVersion: string

    MDN Reference

    clipboard: Clipboard

    Available only in secure contexts.

    MDN Reference

    cookieEnabled: boolean

    Available only in secure contexts.

    MDN Reference

    doNotTrack: string
    geolocation: Geolocation
    hardwareConcurrency: number
    language: string
    languages: readonly string[]
    maxTouchPoints: number
    mediaCapabilities: MediaCapabilities
    mediaDevices: MediaDevices

    Available only in secure contexts.

    MDN Reference

    mediaSession: MediaSession
    mimeTypes: MimeTypeArray

    MDN Reference

    onLine: boolean
    pdfViewerEnabled: boolean
    permissions: Permissions
    platform: string

    MDN Reference

    plugins: PluginArray

    MDN Reference

    product: string

    MDN Reference

    productSub: string

    MDN Reference

    serviceWorker: ServiceWorkerContainer

    Available only in secure contexts.

    MDN Reference

    userActivation: UserActivation
    userAgent: string
    vendor: string

    MDN Reference

    vendorSub: string

    MDN Reference

    wakeLock: WakeLock
    webdriver: boolean

    An XRSystem object is the entry point to the API, used to query for XR features available to the user agent and initiate communication with XR hardware via the creation of XRSessions.

    Methods

    • Available only in secure contexts.

      MDN Reference

      Parameters

      Returns boolean