package js.html
Available on js
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.
Documentation Navigator by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
read onlyappCodeName:Stringread onlyappName:Stringread onlyappVersion:Stringread onlybuildID:StringReturns the build identifier of the browser (e.g., "2006090803").
read onlyclipboard:Clipboardread onlycookieEnabled:BoolReturns false if setting a cookie will be ignored and true otherwise.
read onlydoNotTrack:StringReports the value of the user's do-not-track preference. When this value is "yes", your web site or application should not track the user.
read onlygeolocation:GeolocationReturns a Geolocation object allowing accessing the location of the device.
read onlyhardwareConcurrency:Intread onlylanguage:Stringread onlylanguages:Array<String>read onlymaxTouchPoints:Intread onlymediaDevices:MediaDevicesReturns a reference to a MediaDevices object which can then be used to get information about available media devices (MediaDevices.enumerateDevices()), find out what constrainable properties are supported for media on the user's computer and user agent (MediaDevices.getSupportedConstraints()), and to request access to media using MediaDevices.getUserMedia().
read onlymimeTypes:MimeTypeArrayread onlyonLine:Boolread onlyoscpu:StringReturns a string that represents the current operating system.
read onlypermissions:PermissionsReturns a Permissions object that can be used to query and update permission status of APIs covered by the Permissions API.
read onlyplatform:Stringread onlyplugins:PluginArrayread onlyproduct:Stringread onlyproductSub:StringReturns the build number of the current browser (e.g., "20060909").
read onlyserviceWorker:ServiceWorkerContainerReturns a ServiceWorkerContainer object, which provides access to registration, removal, upgrade, and communication with the ServiceWorker objects for the associated document.
read onlystorage:StorageManagerread onlyuserAgent:Stringread onlyvendor:StringReturns the vendor name of the current browser (e.g., "Netscape6").
read onlyvendorSub:StringReturns the vendor version number (e.g. "6.1").
getGamepads():Array<Gamepad>Throws:
null |
DOMError |
|---|
javaEnabled():BoolrequestMIDIAccess(?options:Null<MIDIOptions>):Promise<MIDIAccess>Throws:
null |
DOMError |
|---|
requestMediaKeySystemAccess(keySystem:String, supportedConfigurations:Array<MediaKeySystemConfiguration>):Promise<MediaKeySystemAccess>sendBeacon(url:String, ?data:Blob):BoolsendBeacon(url:String, ?data:ArrayBufferView):BoolsendBeacon(url:String, ?data:ArrayBuffer):BoolsendBeacon(url:String, ?data:FormData):BoolsendBeacon(url:String, ?data:URLSearchParams):BoolsendBeacon(url:String, ?data:String):BoolThrows:
null |
DOMError |
|---|
taintEnabled():Boolvibrate(pattern:Array<Int>):Boolvibrate(duration:Int):Bool
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/Navigator.html