Interface WorkerNavigator
interface WorkerNavigator {
appCodeName: string;
appName: string;
appVersion: string;
hardwareConcurrency: number;
language: string;
languages: readonly string[];
locks: LockManager;
mediaCapabilities: MediaCapabilities;
onLine: boolean;
permissions: Permissions;
platform: string;
product: string;
storage: StorageManager;
userAgent: string;
clearAppBadge(): Promise<void>;
setAppBadge(contents?: number): Promise<void>;
}
appCodeName: string;
appName: string;
appVersion: string;
hardwareConcurrency: number;
language: string;
languages: readonly string[];
locks: LockManager;
mediaCapabilities: MediaCapabilities;
onLine: boolean;
permissions: Permissions;
platform: string;
product: string;
storage: StorageManager;
userAgent: string;
clearAppBadge(): Promise<void>;
setAppBadge(contents?: number): Promise<void>;
}
Properties
Readonly
appCodeName
appCodeName : string
Readonly
appName
appName : string
Readonly
appVersion
appVersion : string
Readonly
hardwareConcurrency
hardwareConcurrency : number
Readonly
language
language: string
Readonly
languages
languages: readonly string[]
Readonly
locks
Readonly
mediaCapabilities
Readonly
onLine
onLine : boolean
Readonly
permissions
Readonly
platform
platform: string
Readonly
product
product: string
Readonly
storage
Readonly
userAgent
userAgent : string
A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator.
MDN Reference