Uses of Class
com.google.gwt.geolocation.client.Geolocation.PositionOptions
-
Packages that use Geolocation.PositionOptions Package Description com.google.gwt.geolocation.client Support for the HTML5 Geolocation API. -
-
Uses of Geolocation.PositionOptions in com.google.gwt.geolocation.client
Methods in com.google.gwt.geolocation.client that return Geolocation.PositionOptions Modifier and Type Method 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.Methods in com.google.gwt.geolocation.client with parameters of type Geolocation.PositionOptions Modifier and Type Method 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.
-