Navigator class

The 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 object can be retrieved using the read-only window.navigator property.

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

Constructors

factory

Properties

appCodeName String

Available on NavigatorID, provided by the PropsNavigatorID extension

no setter
appName String

Available on NavigatorID, provided by the PropsNavigatorID extension

no setter
appVersion String

Available on NavigatorID, provided by the PropsNavigatorID extension

no setter
bluetooth Bluetooth

Available on Navigator, provided by the PropsNavigator extension

no setter
clipboard Clipboard

Available on Navigator, provided by the PropsNavigator extension

no setter
connection NetworkInformation

Available on NavigatorNetworkInformation, provided by the PropsNavigatorNetworkInformation extension

no setter
contacts ContactsManager

Available on Navigator, provided by the PropsNavigator extension

no setter
cookieEnabled bool

Available on NavigatorCookies, provided by the PropsNavigatorCookies extension

no setter
credentials CredentialsContainer

Available on Navigator, provided by the PropsNavigator extension

no setter
deviceMemory double

Available on NavigatorDeviceMemory, provided by the PropsNavigatorDeviceMemory extension

no setter
devicePosture DevicePosture

Available on Navigator, provided by the PropsNavigator extension

no setter
epubReadingSystem EpubReadingSystem

Available on Navigator, provided by the PropsNavigator extension

no setter
geolocation Geolocation

Available on Navigator, provided by the PropsNavigator extension

no setter
gpu Gpu

Available on NavigatorGPU, provided by the PropsNavigatorGPU extension

no setter
hardwareConcurrency int

Available on NavigatorConcurrentHardware, provided by the PropsNavigatorConcurrentHardware extension

no setter
hashCode int
The hash code for this object.
no setterinherited
hid Hid

Available on Navigator, provided by the PropsNavigator extension

no setter
ink Ink

Available on Navigator, provided by the PropsNavigator extension

no setter
keyboard Keyboard

Available on Navigator, provided by the PropsNavigator extension

no setter
language String

Available on NavigatorLanguage, provided by the PropsNavigatorLanguage extension

no setter
languages Iterable<String>

Available on NavigatorLanguage, provided by the PropsNavigatorLanguage extension

no setter
locks LockManager

Available on NavigatorLocks, provided by the PropsNavigatorLocks extension

no setter
maxTouchPoints int

Available on Navigator, provided by the PropsNavigator extension

no setter
mediaCapabilities MediaCapabilities

Available on Navigator, provided by the PropsNavigator extension

no setter
mediaDevices MediaDevices

Available on Navigator, provided by the PropsNavigator extension

no setter
mediaSession MediaSession

Available on Navigator, provided by the PropsNavigator extension

no setter
mimeTypes MimeTypeArray

Available on NavigatorPlugins, provided by the PropsNavigatorPlugins extension

no setter
ml Ml

Available on NavigatorML, provided by the PropsNavigatorML extension

no setter
onLine bool

Available on NavigatorOnLine, provided by the PropsNavigatorOnLine extension

no setter
oscpu String

Available on NavigatorID, provided by the PropsNavigatorID extension

no setter
pdfViewerEnabled bool

Available on NavigatorPlugins, provided by the PropsNavigatorPlugins extension

no setter
permissions Permissions

Available on Navigator, provided by the PropsNavigator extension

no setter
platform String

Available on NavigatorID, provided by the PropsNavigatorID extension

no setter
plugins PluginArray

Available on NavigatorPlugins, provided by the PropsNavigatorPlugins extension

no setter
presentation Presentation

Available on Navigator, provided by the PropsNavigator extension

no setter
product String

Available on NavigatorID, provided by the PropsNavigatorID extension

no setter
productSub String

Available on NavigatorID, provided by the PropsNavigatorID extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheduling Scheduling

Available on Navigator, provided by the PropsNavigator extension

no setter
serial Serial

Available on Navigator, provided by the PropsNavigator extension

no setter
serviceWorker ServiceWorkerContainer

Available on Navigator, provided by the PropsNavigator extension

no setter
storage StorageManager

Available on NavigatorStorage, provided by the PropsNavigatorStorage extension

no setter
usb Usb

Available on Navigator, provided by the PropsNavigator extension

no setter
userAgent String

Available on NavigatorID, provided by the PropsNavigatorID extension

no setter
userAgentData NavigatorUAData

Available on NavigatorUA, provided by the PropsNavigatorUA extension

no setter
vendor String

Available on NavigatorID, provided by the PropsNavigatorID extension

no setter
vendorSub String

Available on NavigatorID, provided by the PropsNavigatorID extension

no setter
virtualKeyboard VirtualKeyboard

Available on Navigator, provided by the PropsNavigator extension

no setter
wakeLock WakeLock

Available on Navigator, provided by the PropsNavigator extension

no setter
webdriver bool

Available on NavigatorAutomationInformation, provided by the PropsNavigatorAutomationInformation extension

no setter
windowControlsOverlay WindowControlsOverlay

Available on Navigator, provided by the PropsNavigator extension

no setter
xr XRSystem

Available on Navigator, provided by the PropsNavigator extension

no setter

Methods

canShare([ShareData? data]) bool

Available on Navigator, provided by the PropsNavigator extension

clearAppBadge() Future<void>

Available on NavigatorBadge, provided by the PropsNavigatorBadge extension

clearClientBadge() Future<void>

Available on Navigator, provided by the PropsNavigator extension

getAutoplayPolicy(AutoplayPolicyMediaType type) AutoplayPolicy

Available on Navigator, provided by the PropsNavigator extension

getBattery() Future<BatteryManager>

Available on Navigator, provided by the PropsNavigator extension

getGamepads() Iterable<Gamepad>?

Available on Navigator, provided by the PropsNavigator extension

getInstalledRelatedApps() Future<Iterable<RelatedApplication>>

Available on Navigator, provided by the PropsNavigator extension

getUserMedia(MediaStreamConstraints constraints, NavigatorUserMediaSuccessCallback successCallback, NavigatorUserMediaErrorCallback errorCallback) → void

Available on Navigator, provided by the PropsNavigator extension

javaEnabled() bool

Available on NavigatorPlugins, provided by the PropsNavigatorPlugins extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerProtocolHandler(String scheme, String url) → void

Available on NavigatorContentUtils, provided by the PropsNavigatorContentUtils extension

requestMediaKeySystemAccess(String keySystem, Iterable<MediaKeySystemConfiguration> supportedConfigurations) Future<MediaKeySystemAccess>

Available on Navigator, provided by the PropsNavigator extension

requestMIDIAccess([MIDIOptions? options]) Future<MIDIAccess>

Available on Navigator, provided by the PropsNavigator extension

sendBeacon(String url, [dynamic data]) bool

Available on Navigator, provided by the PropsNavigator extension

setAppBadge([int? contents]) Future<void>

Available on NavigatorBadge, provided by the PropsNavigatorBadge extension

setClientBadge([int? contents]) Future<void>

Available on Navigator, provided by the PropsNavigator extension

share([ShareData? data]) Future<void>

Available on Navigator, provided by the PropsNavigator extension

taintEnabled() bool

Available on NavigatorID, provided by the PropsNavigatorID extension

toString() String
A string representation of this object.
inherited
unregisterProtocolHandler(String scheme, String url) → void

Available on NavigatorContentUtils, provided by the PropsNavigatorContentUtils extension

vibrate(dynamic pattern) bool

Available on Navigator, provided by the PropsNavigator extension

Operators

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