Package | Description |
---|---|
com.google.gwt.geolocation.client |
Support for the HTML5 Geolocation API.
|
Modifier and Type | Method and Description |
---|---|
void |
Geolocation.getCurrentPosition(Callback<Position,PositionError> callback)
Calls the callback with the user's current position.
|
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)
Repeatedly calls the given callback with the user's position, as it
changes.
|
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.
|