@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Geolocation")
public class Geolocation
extends JsObject
| 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.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, valuespublic void clearWatch(int watchId)
public void getCurrentPosition(@Nonnull
PositionCallback successCallback,
@Nullable
PositionErrorCallback errorCallback,
@Nonnull
PositionOptions options)
public void getCurrentPosition(@Nonnull
PositionCallback successCallback,
@Nullable
PositionErrorCallback errorCallback)
public void getCurrentPosition(@Nonnull
PositionCallback successCallback)
public int watchPosition(@Nonnull
PositionCallback successCallback,
@Nullable
PositionErrorCallback errorCallback,
@Nonnull
PositionOptions options)
public int watchPosition(@Nonnull
PositionCallback successCallback,
@Nullable
PositionErrorCallback errorCallback)
public int watchPosition(@Nonnull
PositionCallback successCallback)