Skip to main content
Module

x/evt/lib/index.ts>dom.Navigator

💧EventEmitter's typesafe replacement
Go to Latest
import { type dom } from "https://deno.land/x/evt@v2.3.1/lib/index.ts";
const { Navigator } = dom;

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
activeVRDisplays: ReadonlyArray<VRDisplay>
readonly
clipboard: Clipboard
readonly
credentials: CredentialsContainer
readonly
doNotTrack: string | null
readonly
geolocation: Geolocation
readonly
maxTouchPoints: number
readonly
mediaDevices: MediaDevices
readonly
msManipulationViewsEnabled: boolean
readonly
msMaxTouchPoints: number
readonly
msPointerEnabled: boolean
readonly
permissions: Permissions
readonly
pointerEnabled: boolean
readonly
serviceWorker: ServiceWorkerContainer

Methods

getGamepads(): (Gamepad | null)[]
getUserMedia(): void
getVRDisplays(): Promise<VRDisplay[]>
msLaunchUri(
uri: string,
successCallback?: MSLaunchUriCallback,
noHandlerCallback?: MSLaunchUriCallback,
): void
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>
vibrate(pattern: number | number[]): boolean