@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Object")
public interface PositionOptions
| Modifier and Type | Interface and Description |
|---|---|
static interface |
PositionOptions.Builder
The PositionOptions dictionary describes an object containing option properties to pass as a parameter of Geolocation.getCurrentPosition() and Geolocation.watchPosition().
|
| Modifier and Type | Method and Description |
|---|---|
static PositionOptions.Builder |
create() |
boolean |
enableHighAccuracy()
The PositionOptions.enableHighAccuracy property is a Boolean that indicates the application would like to receive the best possible results.
|
int |
maximumAge()
The PositionOptions.maximumAge property is a positive long value indicating the maximum age in milliseconds of a possible cached position that is acceptable to return.
|
void |
setEnableHighAccuracy(boolean enableHighAccuracy)
The PositionOptions.enableHighAccuracy property is a Boolean that indicates the application would like to receive the best possible results.
|
void |
setMaximumAge(int maximumAge)
The PositionOptions.maximumAge property is a positive long value indicating the maximum age in milliseconds of a possible cached position that is acceptable to return.
|
void |
setTimeout(int timeout)
The PositionOptions.timeout property is a positive long value representing the maximum length of time (in milliseconds) the device is allowed to take in order to return a position.
|
int |
timeout()
The PositionOptions.timeout property is a positive long value representing the maximum length of time (in milliseconds) the device is allowed to take in order to return a position.
|
@JsOverlay @Nonnull static PositionOptions.Builder create()
@JsProperty(name="enableHighAccuracy") boolean enableHighAccuracy()
@JsProperty void setEnableHighAccuracy(boolean enableHighAccuracy)
@JsProperty(name="maximumAge") int maximumAge()
@JsProperty void setMaximumAge(int maximumAge)
@JsProperty(name="timeout") int timeout()
@JsProperty void setTimeout(int timeout)