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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getCurrentPosition
(Function success) getCurrentPosition.void
getCurrentPosition
(Function success, Function error) getCurrentPosition.long
watchPosition
(Function success) watchPosition.long
watchPosition
(Function success, Function error) watchPosition.Methods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptable
-
Constructor Details
-
Geolocation
Constructor for Geolocation.
- Parameters:
window
- aWindow
object.
-
-
Method Details
-
getCurrentPosition
getCurrentPosition.
-
getCurrentPosition
getCurrentPosition.
-
watchPosition
watchPosition.
- Parameters:
success
- aFunction
object.- Returns:
- a long.
-
watchPosition
watchPosition.
-