Package org.pepstock.charba.client.dom
Class BaseNavigator
- java.lang.Object
-
- org.pepstock.charba.client.dom.BaseNavigator
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLanguage()
Returns a string representing the preferred language of the user, usually the language of the browser UI.String
getUserAgent()
Returns the user agent string for the current browser.
Browser identification based on detecting the user agent string is unreliable and is not recommended, as the user agent string is user configurable.
-
-
-
Method Detail
-
getLanguage
@JsProperty public final String getLanguage()
Returns a string representing the preferred language of the user, usually the language of the browser UI.- Returns:
- a string representing the preferred language of the user, usually the language of the browser UI
-
getUserAgent
@JsProperty public final String getUserAgent()
Returns the user agent string for the current browser.
Browser identification based on detecting the user agent string is unreliable and is not recommended, as the user agent string is user configurable.- Returns:
- the user agent string for the current browser
-
-