Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>Navigator

Deno Standard Extensions
Go to Latest
import { type Navigator } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

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

Properties

readonly
clipboard: Clipboard

Available only in secure contexts.

readonly
credentials: CredentialsContainer

Available only in secure contexts.

readonly
doNotTrack: string | null
readonly
geolocation: Geolocation
readonly
maxTouchPoints: number
readonly
mediaCapabilities: MediaCapabilities
readonly
mediaDevices: MediaDevices

Available only in secure contexts.

readonly
mediaSession: MediaSession
readonly
permissions: Permissions
readonly
serviceWorker: ServiceWorkerContainer

Available only in secure contexts.

Methods

canShare(data?: ShareData): boolean

Available only in secure contexts.

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

Available only in secure contexts.

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

Available only in secure contexts.

vibrate(pattern: VibratePattern): boolean