@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Object")
public class Geolocation
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Geolocation() |
Modifier and Type | Method and Description |
---|---|
void |
clearWatch(int watchId)
The Geolocation.clearWatch() method is used to unregister location/error monitoring handlers previously installed using Geolocation.watchPosition().
|
void |
getCurrentPosition(PositionCallback successCallback)
The Geolocation.getCurrentPosition() method is used to get the current position of the device.
|
void |
getCurrentPosition(PositionCallback successCallback,
PositionErrorCallback errorCallback)
The Geolocation.getCurrentPosition() method is used to get the current position of the device.
|
void |
getCurrentPosition(PositionCallback successCallback,
PositionErrorCallback errorCallback,
PositionOptions options)
The Geolocation.getCurrentPosition() method is used to get the current position of the device.
|
int |
watchPosition(PositionCallback successCallback)
The Geolocation method watchPosition() method is used to register a handler function that will be called automatically each time the position of the device changes.
|
int |
watchPosition(PositionCallback successCallback,
PositionErrorCallback errorCallback)
The Geolocation method watchPosition() method is used to register a handler function that will be called automatically each time the position of the device changes.
|
int |
watchPosition(PositionCallback successCallback,
PositionErrorCallback errorCallback,
PositionOptions options)
The Geolocation method watchPosition() method is used to register a handler function that will be called automatically each time the position of the device changes.
|
public void clearWatch(int watchId)
public void getCurrentPosition(@Nonnull PositionCallback successCallback, @Nonnull PositionErrorCallback errorCallback, @Nonnull PositionOptions options)
public void getCurrentPosition(@Nonnull PositionCallback successCallback, @Nonnull PositionErrorCallback errorCallback)
public void getCurrentPosition(@Nonnull PositionCallback successCallback)
public int watchPosition(@Nonnull PositionCallback successCallback, @Nonnull PositionErrorCallback errorCallback, @Nonnull PositionOptions options)
public int watchPosition(@Nonnull PositionCallback successCallback, @Nonnull PositionErrorCallback errorCallback)
public int watchPosition(@Nonnull PositionCallback successCallback)