Skip to content

Interface: Navigator ​

Defined in: types/desktop-engine.d.ts:5020

What libraries read about the device; there's no browser behind it

Properties ​

appVersion ​

ts
readonly appVersion: string;

Defined in: types/desktop-engine.d.ts:5024

userAgent without "Mozilla/"


hardwareConcurrency ​

ts
readonly hardwareConcurrency: number;

Defined in: types/desktop-engine.d.ts:5035

The number of the Mac's processor cores


language ​

ts
readonly language: string;

Defined in: types/desktop-engine.d.ts:5031

The user's preferred language as browsers give it, such as "zh-CN" or "en-US": the system's script left out (DesktopEngine.launchOptions.locale is the system's own, such as "zh-Hans-CN")


languages ​

ts
readonly languages: readonly string[];

Defined in: types/desktop-engine.d.ts:5033

The user's preferred languages, the first one first, as language


maxTouchPoints ​

ts
readonly maxTouchPoints: number;

Defined in: types/desktop-engine.d.ts:5037

Always 0: there's no touch screen


platform ​

ts
readonly platform: string;

Defined in: types/desktop-engine.d.ts:5026

"MacIntel", as Safari says on every Mac


userAgent ​

ts
readonly userAgent: string;

Defined in: types/desktop-engine.d.ts:5022

"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) DesktopEngine": a Mac, without Safari or WebKit

The SDK is released under the Apache License 2.0