Navigator class

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

MDN Reference

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

factory

Properties

appCodeName String

Available on NavigatorID, provided by the NavigatorID$Typings extension

no setter
appName String

Available on NavigatorID, provided by the NavigatorID$Typings extension

no setter
appVersion String

Available on NavigatorID, provided by the NavigatorID$Typings extension

no setter
canShare bool Function([ShareData?])

Available on Navigator, provided by the Navigator$Typings extension

getter/setter pair
clearAppBadge Future<void> Function()

Available on NavigatorBadge, provided by the NavigatorBadge$Typings extension

getter/setter pair
clipboard Clipboard

Available on Navigator, provided by the Navigator$Typings extension

Available only in secure contexts.
no setter
cookieEnabled bool

Available on NavigatorCookies, provided by the NavigatorCookies$Typings extension

MDN Reference
no setter
credentials CredentialsContainer

Available on Navigator, provided by the Navigator$Typings extension

Available only in secure contexts.
no setter
doNotTrack String?

Available on Navigator, provided by the Navigator$Typings extension

no setter
geolocation Geolocation

Available on Navigator, provided by the Navigator$Typings extension

MDN Reference
no setter
getGamepads List<Gamepad?> Function()

Available on Navigator, provided by the Navigator$Typings extension

getter/setter pair
hardwareConcurrency num

Available on NavigatorConcurrentHardware, provided by the NavigatorConcurrentHardware$Typings extension

MDN Reference
no setter
hashCode int
The hash code for this object.
no setterinherited
javaEnabled bool Function()

Available on NavigatorPlugins, provided by the NavigatorPlugins$Typings extension

getter/setter pair
language String

Available on NavigatorLanguage, provided by the NavigatorLanguage$Typings extension

MDN Reference
no setter
languages ReadonlyArray<String>

Available on NavigatorLanguage, provided by the NavigatorLanguage$Typings extension

MDN Reference
no setter
locks LockManager

Available on NavigatorLocks, provided by the NavigatorLocks$Typings extension

MDN Reference
no setter
maxTouchPoints num

Available on Navigator, provided by the Navigator$Typings extension

MDN Reference
no setter
mediaCapabilities MediaCapabilities

Available on Navigator, provided by the Navigator$Typings extension

MDN Reference
no setter
mediaDevices MediaDevices

Available on Navigator, provided by the Navigator$Typings extension

Available only in secure contexts.
no setter
mediaSession MediaSession

Available on Navigator, provided by the Navigator$Typings extension

MDN Reference
no setter
mimeTypes MimeTypeArray

Available on NavigatorPlugins, provided by the NavigatorPlugins$Typings extension

no setter
onLine bool

Available on NavigatorOnLine, provided by the NavigatorOnLine$Typings extension

MDN Reference
no setter
pdfViewerEnabled bool

Available on NavigatorPlugins, provided by the NavigatorPlugins$Typings extension

MDN Reference
no setter
permissions Permissions

Available on Navigator, provided by the Navigator$Typings extension

MDN Reference
no setter
platform String

Available on NavigatorID, provided by the NavigatorID$Typings extension

no setter
plugins PluginArray

Available on NavigatorPlugins, provided by the NavigatorPlugins$Typings extension

no setter
product String

Available on NavigatorID, provided by the NavigatorID$Typings extension

no setter
productSub String

Available on NavigatorID, provided by the NavigatorID$Typings extension

no setter
registerProtocolHandler ↔ void Function(String, Object)

Available on NavigatorContentUtils, provided by the NavigatorContentUtils$Typings extension

getter/setter pair
requestMediaKeySystemAccess Future<MediaKeySystemAccess> Function(String, List<MediaKeySystemConfiguration>)

Available on Navigator, provided by the Navigator$Typings extension

getter/setter pair
requestMIDIAccess Future<MIDIAccess> Function([MIDIOptions?])

Available on Navigator, provided by the Navigator$Typings extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendBeacon bool Function(Object, [Object?])

Available on Navigator, provided by the Navigator$Typings extension

getter/setter pair
serviceWorker ServiceWorkerContainer

Available on Navigator, provided by the Navigator$Typings extension

Available only in secure contexts.
no setter
setAppBadge Future<void> Function([num?])

Available on NavigatorBadge, provided by the NavigatorBadge$Typings extension

getter/setter pair
share Future<void> Function([ShareData?])

Available on Navigator, provided by the Navigator$Typings extension

getter/setter pair
storage StorageManager

Available on NavigatorStorage, provided by the NavigatorStorage$Typings extension

MDN Reference
no setter
userActivation UserActivation

Available on Navigator, provided by the Navigator$Typings extension

MDN Reference
no setter
userAgent String

Available on NavigatorID, provided by the NavigatorID$Typings extension

MDN Reference
no setter
vendor String

Available on NavigatorID, provided by the NavigatorID$Typings extension

no setter
vendorSub String

Available on NavigatorID, provided by the NavigatorID$Typings extension

no setter
vibrate bool Function(Object)

Available on Navigator, provided by the Navigator$Typings extension

getter/setter pair
wakeLock WakeLock

Available on Navigator, provided by the Navigator$Typings extension

MDN Reference
no setter
webdriver bool

Available on NavigatorAutomationInformation, provided by the NavigatorAutomationInformation$Typings extension

MDN Reference
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited