Modifier and Type | Method and 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. |
@JsProperty public final String getLanguage()
@JsProperty public final String getUserAgent()