public interface Navigator
Modifier and Type | Method and Description |
---|---|
String |
getAppCodeName()
Returns the internal "code" name of the current browser.
|
String |
getAppName()
Returns the official name of the browser.
|
String |
getAppVersion()
Returns the version of the browser as a string.
|
Geolocation |
getGeolocation() |
String |
getLanguage()
Returns a string representing the language version of the browser.
|
DOMMimeTypeArray |
getMimeTypes()
Returns a list of the MIME types supported by the browser.
|
String |
getPlatform()
Returns a string representing the platform of the browser.
|
DOMPluginArray |
getPlugins()
Returns an array of the plugins installed in the browser.
|
String |
getProduct()
Returns the product name of the current browser.
|
String |
getProductSub()
Returns the build number of the current browser (e.g.
|
void |
getStorageUpdates() |
String |
getUserAgent()
Returns the user agent string for the current browser.
|
String |
getVendor()
Returns the vendor name of the current browser (e.g.
|
String |
getVendorSub()
Returns the vendor version number (e.g.
|
BatteryManager |
getWebkitBattery()
Returns a
battery
object you can use to get information about the battery charging status. |
PointerLock |
getWebkitPointer()
Returns a PointerLock object for the Mouse Lock API.
|
boolean |
isCookieEnabled()
Returns a boolean indicating whether cookies are enabled in the browser or not.
|
boolean |
isOnLine()
Returns a boolean indicating whether the browser is working online.
|
boolean |
javaEnabled()
Indicates whether the host browser is Java-enabled or not.
|
void |
registerProtocolHandler(String scheme,
String url,
String title)
Allows web sites to register themselves as a possible handler for a given protocol.
|
void |
webkitGetUserMedia(Mappable options,
NavigatorUserMediaSuccessCallback successCallback) |
void |
webkitGetUserMedia(Mappable options,
NavigatorUserMediaSuccessCallback successCallback,
NavigatorUserMediaErrorCallback errorCallback) |
String getAppCodeName()
String getAppName()
String getAppVersion()
boolean isCookieEnabled()
Geolocation getGeolocation()
String getLanguage()
DOMMimeTypeArray getMimeTypes()
boolean isOnLine()
String getPlatform()
DOMPluginArray getPlugins()
String getProduct()
String getProductSub()
String getUserAgent()
String getVendor()
String getVendorSub()
BatteryManager getWebkitBattery()
battery
object you can use to get information about the battery charging status.PointerLock getWebkitPointer()
void getStorageUpdates()
boolean javaEnabled()
void registerProtocolHandler(String scheme, String url, String title)
void webkitGetUserMedia(Mappable options, NavigatorUserMediaSuccessCallback successCallback, NavigatorUserMediaErrorCallback errorCallback)
void webkitGetUserMedia(Mappable options, NavigatorUserMediaSuccessCallback successCallback)
Copyright © 2018. All rights reserved.