package js.html
Available on jsThe
Navigatorinterface 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:
read only appCodeName:Stringread only appName:Stringread only appVersion:Stringread only battery:BatteryManagerReturns a BatteryManager object you can use to get information about the battery charging status.
read only buildID:Stringread only cookieEnabled:BoolReturns a boolean indicating whether cookies are enabled in the browser or not.
read only doNotTrack: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 only geolocation:GeolocationReturns a Geolocation object allowing accessing the location of the device.
read only hardwareConcurrency:Intread only language:Stringread only languages:Array<String>read only maxTouchPoints:Intread only mimeTypes:MimeTypeArrayread only onLine:Boolread only oscpu:StringReturns a string that represents the current operating system.
read only permissions:PermissionsReturns a Permissions object that can be used to query and update permission status of APIs covered by the Permissions API.
read only platform:Stringread only plugins:PluginArrayread only product:Stringread only productSub:StringReturns the build number of the current browser (e.g., "20060909").
read only userAgent:Stringread only vendor:StringReturns the vendor name of the current browser (e.g., "Netscape6").
read only vendorSub:StringReturns the vendor version number (e.g. "6.1").
getBattery ():Promise<BatteryManager>Throws:
null |
DOMError |
|---|
getGamepads ():Array<Gamepad>Throws:
null |
DOMError |
|---|
javaEnabled ():BoolThrows:
null |
DOMError |
|---|
registerContentHandler (mimeType:String, url:String, title:String):VoidThrows:
null |
DOMError |
|---|
registerProtocolHandler (scheme:String, url:String, title:String):VoidThrows:
null |
DOMError |
|---|
sendBeacon (url:String, ?data:EitherType<ArrayBufferView, EitherType<Blob, EitherType<String, FormData>>>):BoolThrows:
null |
DOMError |
|---|
taintEnabled ():Boolvibrate (pattern:Array<Int>):Boolvibrate (duration:Int):Bool
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/Navigator.html