Package org.loboevolution.html.js
Class NavigatorImpl
java.lang.Object
org.loboevolution.js.AbstractScriptableDelegate
org.loboevolution.html.js.NavigatorImpl
- All Implemented Interfaces:
Navigator,ScriptableDelegate
Navigator class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAppName.getAppVersion.getGeolocation.getLanguage.intgetMaxTouchPoints.intgetMsMaxTouchPoints.getPlatform.getProduct.getUserAgent.booleanisMsManipulationViewsEnabled.booleanisMsPointerEnabled.booleanisOnLine()isOnLine.booleanisPointerEnabled.toString()booleanvibrate(int pattern) vibrate.booleanvibrate(int... pattern) vibrate.Methods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptable
-
Constructor Details
-
NavigatorImpl
Constructor for Navigator.
- Parameters:
window- aWindowImplobject.
-
-
Method Details
-
getGeolocation
getGeolocation.
- Returns:
- a
Geolocationobject.
-
isOnLine
public boolean isOnLine()isOnLine.
- Returns:
- a boolean.
-
getLanguage
getLanguage.
- Returns:
- a
Stringobject.
-
getAppName
getAppName.
- Returns:
- a
Stringobject.
-
getAppVersion
getAppVersion.
- Returns:
- a
Stringobject.
-
getPlatform
getPlatform.
- Returns:
- a
Stringobject.
-
getProduct
getProduct.
- Returns:
- a
Stringobject.
-
getUserAgent
getUserAgent.
- Returns:
- a
Stringobject.
-
getMaxTouchPoints
public int getMaxTouchPoints()getMaxTouchPoints.
- Specified by:
getMaxTouchPointsin interfaceNavigator- Returns:
- a
Integerobject.
-
isMsManipulationViewsEnabled
public boolean isMsManipulationViewsEnabled()isMsManipulationViewsEnabled.
- Specified by:
isMsManipulationViewsEnabledin interfaceNavigator- Returns:
- a boolean.
-
getMsMaxTouchPoints
public int getMsMaxTouchPoints()getMsMaxTouchPoints.
- Specified by:
getMsMaxTouchPointsin interfaceNavigator- Returns:
- a
Integerobject.
-
isMsPointerEnabled
public boolean isMsPointerEnabled()isMsPointerEnabled.
- Specified by:
isMsPointerEnabledin interfaceNavigator- Returns:
- a boolean.
-
isPointerEnabled
public boolean isPointerEnabled()isPointerEnabled.
- Specified by:
isPointerEnabledin interfaceNavigator- Returns:
- a boolean.
-
vibrate
public boolean vibrate(int pattern) vibrate.
-
vibrate
public boolean vibrate(int... pattern) vibrate.
-
toString
-