Navigator

interface

interface Navigator

Provides information about the Ende runtime environment and the system on which it's running. Similar to the browser Navigator object but adapted for the Ende context.

Example

// Check available CPU cores
console.log(`Available CPU cores: ${navigator.hardwareConcurrency}`);

// Check user agent
console.log(`User agent: ${navigator.userAgent}`);

// Check language settings
console.log(`Language: ${navigator.language}`);

variable

var Navigator: { … }

Constructor for Navigator objects.

Note: This constructor cannot be used to create new Navigator instances in Ende. The global navigator object is pre-defined in the runtime environment.

Constructors

constructor

new Navigator(): never

Properties

gpu

readonly gpu: GPU

hardwareConcurrency

readonly hardwareConcurrency: number

userAgent

readonly userAgent: string

language

readonly language: string

languages

readonly languages: string[]

platform

readonly platform: string

userAgentData

readonly userAgentData: NavigatorUAData

prototype

readonly prototype: Navigator

variable

var navigator: Navigator

Provides access to the Ende runtime's Navigator interface, which contains information about the environment in which the script is running.

Example

// Log information about the runtime environment
console.log(`Hardware concurrency: ${navigator.hardwareConcurrency}`);
console.log(`User agent: ${navigator.userAgent}`);