Package | Description |
---|---|
com.google.gwt.geolocation.client |
Support for the HTML5 Geolocation API.
|
Modifier and Type | Method and Description |
---|---|
Geolocation.PositionOptions |
Geolocation.PositionOptions.setHighAccuracyEnabled(boolean enabled)
Sets whether or not the application will request a more accurate position
from the browser.
|
Geolocation.PositionOptions |
Geolocation.PositionOptions.setMaximumAge(int maximumAge)
Allows the browser to return a position immediately with a cached
position.
|
Geolocation.PositionOptions |
Geolocation.PositionOptions.setTimeout(int timeout)
Sets the amount of time (in milliseconds) that the application is willing
to wait before getting the user's position.
|
Modifier and Type | Method and Description |
---|---|
void |
Geolocation.getCurrentPosition(Callback<Position,PositionError> callback,
Geolocation.PositionOptions options)
Calls the callback with the user's current position, with additional
options.
|
int |
Geolocation.watchPosition(Callback<Position,PositionError> callback,
Geolocation.PositionOptions options)
Repeatedly calls the given callback with the user's position, as it
changes, with additional options.
|