Package org.vaadin.firitin.geolocation
Class GeolocationOptions
java.lang.Object
org.vaadin.firitin.geolocation.GeolocationOptions
- All Implemented Interfaces:
Serializable
@Deprecated(since="3.6",
forRemoval=true)
public class GeolocationOptions
extends Object
implements Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
A class to configure options for geolocation requests.
- Author:
- mstahv
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.GeolocationOptions(Boolean enableHighAccuracy, Integer timeout, Integer maximumAge) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.The enableHighAccuracy member provides a hint that the application would like to receive the most accurate location data.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.The timeout member denotes the maximum length of time, expressed in milliseconds, before acquiring a position expires.voidsetEnableHighAccuracy(Boolean enableHighAccuracy) Deprecated, for removal: This API element is subject to removal in a future version.voidsetMaximumAge(Integer maximumAge) Deprecated, for removal: This API element is subject to removal in a future version.voidsetTimeout(Integer timeout) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
GeolocationOptions
public GeolocationOptions()Deprecated, for removal: This API element is subject to removal in a future version. -
GeolocationOptions
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getEnableHighAccuracy
Deprecated, for removal: This API element is subject to removal in a future version.The enableHighAccuracy member provides a hint that the application would like to receive the most accurate location data. The intended purpose of this member is to allow applications to inform the implementation that they do not require high accuracy geolocation fixes and, therefore, the implementation MAY avoid using geolocation providers that consume a significant amount of power (e.g., GPS).NOTE: A word of warning about enableHighAccuracy The enableHighAccuracy member can result in slower response times or increased power consumption. The user might also disable this capability, or the device might not be able to provide more accurate results than if the flag wasn't specified.
- Returns:
- true if high accuracy is requested
-
setEnableHighAccuracy
Deprecated, for removal: This API element is subject to removal in a future version. -
getTimeout
Deprecated, for removal: This API element is subject to removal in a future version.The timeout member denotes the maximum length of time, expressed in milliseconds, before acquiring a position expires.NOTE: When is the timeout calculated? The time spent waiting for the document to become visible and for obtaining permission to use the API is not included in the period covered by the timeout member. The timeout member only applies when acquiring a position begins.
NOTE: Immediate cancellation An options.timeout value 0 can cause immediate failures.
- Returns:
- the timeout
-
setTimeout
Deprecated, for removal: This API element is subject to removal in a future version. -
getMaximumAge
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The maximumAge member indicates that the web application is willing to accept a cached position whose age is no greater than the specified time in milliseconds.
-
setMaximumAge
Deprecated, for removal: This API element is subject to removal in a future version.
-
Geolocationhelper. Use the nativecom.vaadin.flow.component.geolocation.GeolocationOptions(built viaGeolocationOptions.builder()).