Enum FenceGeotriggerFeedAccuracyMode
- java.lang.Object
-
- java.lang.Enum<FenceGeotriggerFeedAccuracyMode>
-
- com.esri.arcgisruntime.geotriggers.FenceGeotriggerFeedAccuracyMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FenceGeotriggerFeedAccuracyMode>
public enum FenceGeotriggerFeedAccuracyMode extends java.lang.Enum<FenceGeotriggerFeedAccuracyMode>
Options that describe how aFenceGeotrigger
will use accuracy information from aGeotriggerFeed
.This enumeration defines how the accuracy information from a
GeotriggerFeed
is used to provide theGeometry
for checking aGeotrigger
condition. In particular, you can choose how to use theLocationDataSource.Location.getHorizontalAccuracy()
property to reflect the uncertainty around a fixedLocationDataSource.Location.getPosition()
. Due to factors including signal strength, GPS positions can be inaccurate, with a largerLocation.getHorizontalAccuracy()
representing a larger area where the device may actually be located. This can lead to spurious notifications when theLocation.getPosition()
is inaccurate and is incorrectly reported as inside or outside of a fence. By using theLocation.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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description USE_GEOMETRY
The reportedGeometry
from aGeotriggerFeed
will be used.USE_GEOMETRY_WITH_ACCURACY
The reportedGeometry
from aGeotriggerFeed
will be used in conjunction with accuracy information.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FenceGeotriggerFeedAccuracyMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FenceGeotriggerFeedAccuracyMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USE_GEOMETRY
public static final FenceGeotriggerFeedAccuracyMode 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
public static final FenceGeotriggerFeedAccuracyMode 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 Detail
-
values
public static FenceGeotriggerFeedAccuracyMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FenceGeotriggerFeedAccuracyMode c : FenceGeotriggerFeedAccuracyMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FenceGeotriggerFeedAccuracyMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-