Interface Navigator
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;
}
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;
}
Index
Properties
appCodeName
appName
appVersion
clipboard
cookieEnabled
credentials
doNotTrack
geolocation
hardwareConcurrency
language
languages
locks
maxTouchPoints
mediaCapabilities
mediaDevices
mediaSession
mimeTypes
onLine
pdfViewerEnabled
permissions
platform
plugins
product
productSub
serviceWorker
storage
userActivation
userAgent
vendor
vendorSub
wakeLock
webdriver
xr?
Methods
Properties
Readonly
appCodeName
appCodeName : string
Readonly
appName
appName : string
Readonly
appVersion
appVersion : string
Readonly
clipboard
Available only in secure contexts.
Readonly
cookieEnabled
cookieEnabled : boolean
Readonly
credentials
Available only in secure contexts.
Readonly
doNotTrack
doNotTrack : string
Readonly
geolocation
Readonly
hardwareConcurrency
hardwareConcurrency : number
Readonly
language
language: string
Readonly
languages
languages: readonly string[]
Readonly
locks
Readonly
maxTouchPoints
maxTouchPoints : number
Readonly
mediaCapabilities
Readonly
mediaDevices
Available only in secure contexts.
Readonly
mediaSession
Readonly
mimeTypes
Readonly
onLine
onLine : boolean
Readonly
pdfViewerEnabled
pdfViewerEnabled : boolean
Readonly
permissions
Readonly
platform
platform: string
Readonly
plugins
Readonly
product
product: string
Readonly
productSub
productSub : string
Readonly
serviceWorker
Available only in secure contexts.
Readonly
storage
Readonly
userActivation
Readonly
userAgent
userAgent : string
Readonly
vendor
vendor: string
Readonly
vendorSub
vendorSub : string
Readonly
wakeLock
Readonly
webdriver
webdriver: boolean
Optional
xr
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
canShare
- can
Share (data?): boolean Available only in secure contexts.
Parameters
Optional
data: ShareData
Returns boolean
clearAppBadge
getGamepads
javaEnabled
registerProtocolHandler
- register
Protocol (scheme, url): voidHandler Available only in secure contexts.
Parameters
- scheme: string
- url: string | URL
Returns void
requestMediaKeySystemAccess
- request
Media (keySystem, supportedConfigurations): Promise<MediaKeySystemAccess>Key System Access Available only in secure contexts.
Parameters
- keySystem: string
- supportedConfigurations: MediaKeySystemConfiguration[]
Returns Promise<MediaKeySystemAccess>
- request
Media (keySystem, supportedConfigurations): Promise<MediaKeySystemAccess>Key System Access Available only in secure contexts.
Parameters
- keySystem: string
- supportedConfigurations: Iterable<MediaKeySystemConfiguration, any, any>
Returns Promise<MediaKeySystemAccess>
requestMIDIAccess
- requestMIDIAccess(options?): Promise<MIDIAccess>
Available only in secure contexts.
Parameters
Optional
options: MIDIOptions
Returns Promise<MIDIAccess>
sendBeacon
setAppBadge
share
vibrate
- vibrate(pattern): boolean
Parameters
- pattern: VibratePattern
Returns boolean
- vibrate(pattern): boolean
Parameters
- pattern: Iterable<number, any, any>
Returns boolean
Available only in secure contexts.