Navigator extension type
The Navigator
interface represents the state and the identity of the
user agent. It allows scripts to query it and to register themselves to
carry on some activities.
A Navigator
object can be retrieved using the read-only window.navigator
property.
Properties
- appCodeName → String
-
no setter
- appName → String
-
no setter
- appVersion → String
-
no setter
- clipboard → Clipboard
-
no setter
-
no setter
- credentials → CredentialsContainer
-
no setter
- geolocation → Geolocation
-
no setter
- hardwareConcurrency → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → String
-
no setter
-
languages
→ JSArray<
JSString> -
no setter
- locks → LockManager
-
no setter
- maxTouchPoints → int
-
no setter
- mediaCapabilities → MediaCapabilities
-
no setter
- mediaDevices → MediaDevices
-
no setter
- mediaSession → MediaSession
-
no setter
- mimeTypes → MimeTypeArray
-
no setter
- onLine → bool
-
no setter
- oscpu → String
-
no setter
- pdfViewerEnabled → bool
-
no setter
- permissions → Permissions
-
no setter
- platform → String
-
no setter
- plugins → PluginArray
-
no setter
- product → String
-
no setter
- productSub → String
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceWorker → ServiceWorkerContainer
-
no setter
- storage → StorageManager
-
no setter
- userActivation → UserActivation
-
no setter
- userAgent → String
-
no setter
- vendor → String
-
no setter
- vendorSub → String
-
no setter
- wakeLock → WakeLock
-
no setter
Methods
-
getGamepads(
) → JSArray< Gamepad?> -
The
Navigator.getGamepads()
method returns an array of Gamepad objects, one for each gamepad connected to the device. -
getUserMedia(
MediaStreamConstraints constraints, NavigatorUserMediaSuccessCallback successCallback, NavigatorUserMediaErrorCallback errorCallback) → void -
The deprecated
Navigator.getUserMedia()
method prompts the user for permission to use up to one video input device (such as a camera or shared screen) and up to one audio input device (such as a microphone) as the source for a MediaStream. -
javaEnabled(
) → bool - This method always returns false.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerProtocolHandler(
String scheme, String url) → void -
The Navigator method
registerProtocolHandler()
lets websites register their ability to open or handle particular URL schemes (aka protocols). -
requestMediaKeySystemAccess(
String keySystem, JSArray< MediaKeySystemConfiguration> supportedConfigurations) → JSPromise<MediaKeySystemAccess> -
The
Navigator.requestMediaKeySystemAccess()
method returns aPromise
which delivers a MediaKeySystemAccess object that can be used to access a particular media key system, which can in turn be used to create keys for decrypting a media stream. This method is part of the Encrypted Media Extensions API, which brings support for encrypted media and DRM-protected video to the web. -
taintEnabled(
) → bool -
The
Navigator.taintEnabled()
method always returnsfalse
. -
toString(
) → String -
A string representation of this object.
inherited
-
unregisterProtocolHandler(
String scheme, String url) → void -
The Navigator method
unregisterProtocolHandler()
removes a protocol handler for a given URL scheme. -
vibrate(
VibratePattern pattern) → bool -
The
Navigator.vibrate()
method pulses the vibration hardware on the device, if such hardware exists. If the device doesn't support vibration, this method has no effect. If a vibration pattern is already in progress when this method is called, the previous pattern is halted and the new one begins instead.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited