Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Navigator

The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities.

interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
readonly clipboard: Clipboard;
readonly credentials: CredentialsContainer;
readonly doNotTrack: string | null;
readonly geolocation: Geolocation;
readonly maxTouchPoints: number;
readonly mediaCapabilities: MediaCapabilities;
readonly mediaDevices: MediaDevices;
readonly mediaSession: MediaSession;
readonly permissions: Permissions;
readonly serviceWorker: ServiceWorkerContainer;
canShare(data?: ShareData): boolean;
getGamepads(): (Gamepad | null)[];
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
share(data?: ShareData): Promise<void>;
vibrate(pattern: VibratePattern): boolean;
vibrate(pattern: Iterable<number>): boolean;
}
var Navigator: {
prototype: Navigator;
new (): Navigator;
}
;

§Extends

§Properties

§
readonly clipboard: Clipboard
[src]

Available only in secure contexts.

§
readonly credentials: CredentialsContainer
[src]

Available only in secure contexts.

§
readonly doNotTrack: string | null
[src]
§
readonly geolocation: Geolocation
[src]
§
readonly maxTouchPoints: number
[src]
§
readonly mediaCapabilities: MediaCapabilities
[src]
§
readonly mediaDevices: MediaDevices
[src]

Available only in secure contexts.

§
readonly mediaSession: MediaSession
[src]
§
readonly permissions: Permissions
[src]
§
readonly serviceWorker: ServiceWorkerContainer
[src]

Available only in secure contexts.

§Methods

§
canShare(data?: ShareData): boolean
[src]

Available only in secure contexts.

§
getGamepads(): (Gamepad | null)[]
[src]
§
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>
[src]

Available only in secure contexts.

§
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>
[src]

Available only in secure contexts.

§
sendBeacon(url: string | URL, data?: BodyInit | null): boolean
[src]
§
share(data?: ShareData): Promise<void>
[src]

Available only in secure contexts.

§
vibrate(pattern: VibratePattern): boolean
[src]
§
vibrate(pattern: Iterable<number>): boolean
[src]