Enum Class FenceGeotriggerFeedAccuracyMode
- All Implemented Interfaces:
Serializable
,Comparable<FenceGeotriggerFeedAccuracyMode>
,Constable
FenceGeotrigger
will use accuracy information from a GeotriggerFeed
.
This enumeration defines how the accuracy information from a GeotriggerFeed
is used to
provide the Geometry
for checking a Geotrigger
condition. In particular, you can
choose how to use the LocationDataSource.Location.getHorizontalAccuracy()
property to reflect the uncertainty
around a fixed LocationDataSource.Location.getPosition()
. Due to factors including signal strength, GPS
positions can be inaccurate, with a larger Location.getHorizontalAccuracy()
representing a
larger area where the device may actually be located. This can lead to spurious
notifications when the Location.getPosition()
is inaccurate and is incorrectly reported as
inside or outside of a fence. By using the Location.getHorizontalAccuracy()
you can choose to
account for that uncertainty in various ways.
This property is used in conjunction with FenceGeotrigger.getEnterExitSpatialRelationship()
to affect
when notifications are sent.
- Since:
- 100.13.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe reportedGeometry
from aGeotriggerFeed
will be used.The reportedGeometry
from aGeotriggerFeed
will be used in conjunction with accuracy information. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static FenceGeotriggerFeedAccuracyMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USE_GEOMETRY
The reportedGeometry
from aGeotriggerFeed
will be used.For a
LocationGeotriggerFeed
the point geometry from theLocationDataSource.Location.getPosition()
property will be used.- Since:
- 100.13.0
-
USE_GEOMETRY_WITH_ACCURACY
The reportedGeometry
from aGeotriggerFeed
will be used in conjunction with accuracy information.For a
LocationGeotriggerFeed
the point geometry from theLocationDataSource.Location.getPosition()
property will be buffered by theLocationDataSource.Location.getHorizontalAccuracy()
to produce a polygon geometry.- Since:
- 100.13.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-