@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Object")
public interface PositionOptions
| Modifier and Type | Method and Description |
|---|---|
static PositionOptions |
create() |
boolean |
enableHighAccuracy()
The PositionOptions.enableHighAccuracy property is a Boolean that indicates the application would like to receive the best possible results.
|
default PositionOptions |
enableHighAccuracy(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.
|
default PositionOptions |
maximumAge(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.
|
default PositionOptions |
timeout(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 create()
@JsProperty(name="enableHighAccuracy") boolean enableHighAccuracy()
@JsProperty void setEnableHighAccuracy(boolean enableHighAccuracy)
@JsOverlay @Nonnull default PositionOptions enableHighAccuracy(boolean enableHighAccuracy)
@JsProperty(name="maximumAge") int maximumAge()
@JsProperty void setMaximumAge(int maximumAge)
@JsOverlay @Nonnull default PositionOptions maximumAge(int maximumAge)
@JsProperty(name="timeout") int timeout()
@JsProperty void setTimeout(int timeout)
@JsOverlay @Nonnull default PositionOptions timeout(int timeout)