Class Geolocation
java.lang.Object
org.loboevolution.js.AbstractScriptableDelegate
org.loboevolution.html.js.geolocation.Geolocation
- All Implemented Interfaces:
ScriptableDelegate
The Geolocation class provides Java implementation of the "Geolocation Interface" as detailed out in the W3C Specifications ( http://www.w3.org/TR/geolocation-API/#geolocation_interface).
Note: This class must not have any sub-classes to ensure W3C Specifications are being strictly followed by the system or application that uses this geolocation package.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetCurrentPosition(Function success) getCurrentPosition.voidgetCurrentPosition(Function success, Function error) getCurrentPosition.longwatchPosition(Function success) watchPosition.longwatchPosition(Function success, Function error) watchPosition.Methods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptable
-
Constructor Details
-
Geolocation
Constructor for Geolocation.
- Parameters:
window- aWindowobject.
-
-
Method Details
-
getCurrentPosition
getCurrentPosition.
-
getCurrentPosition
getCurrentPosition.
-
watchPosition
watchPosition.
- Parameters:
success- aFunctionobject.- Returns:
- a long.
-
watchPosition
watchPosition.
-