Class FenceGeotriggerNotificationInfo
- java.lang.Object
-
- com.esri.arcgisruntime.geotriggers.GeotriggerNotificationInfo
-
- com.esri.arcgisruntime.geotriggers.FenceGeotriggerNotificationInfo
-
public class FenceGeotriggerNotificationInfo extends GeotriggerNotificationInfo
AGeotriggerNotificationInfo
from aFenceGeotrigger
.- Since:
- 100.12.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoElement
getFenceGeoElement()
Gets theGeoElement
from the fence data that meets theFenceGeotrigger
condition.Geometry
getFenceGeometry()
Gets theGeometry
used for the fence that satisfies theFenceGeotrigger
condition.java.lang.String
getFenceId()
Gets a unique ID for the fence that triggered the notification info.FenceNotificationType
getFenceNotificationType()
Gets the type of rule that caused this FenceGeotriggerNotificationInfo.-
Methods inherited from class com.esri.arcgisruntime.geotriggers.GeotriggerNotificationInfo
getActions, getFeedEntityId, getFeedLocation, getGeotriggerMonitor, getMessage, getMessageProperties
-
-
-
-
Method Detail
-
getFenceGeoElement
public GeoElement getFenceGeoElement()
Gets theGeoElement
from the fence data that meets theFenceGeotrigger
condition.The
GeoElement
is one of the features or graphics from theFenceParameters
used to create theFenceGeotrigger
. Inspect theGeoElement.getAttributes()
andGeoElement.getGeometry()
properties for more details.- Returns:
- the
GeoElement
from the fence data that meets theFenceGeotrigger
condition - Since:
- 100.12.0
-
getFenceGeometry
public Geometry getFenceGeometry()
Gets theGeometry
used for the fence that satisfies theFenceGeotrigger
condition.The original geometry of the
getFenceGeoElement()
, including any adjustments (such as applying buffers) and projected to WGS84. You can compare this with theLocationDataSource.Location.getPosition()
of the correspondingGeotriggerNotificationInfo.getFeedLocation()
.- Returns:
- the
Geometry
used for the fence that satisfies theFenceGeotrigger
condition - Since:
- 100.12.0
-
getFenceId
public java.lang.String getFenceId()
Gets a unique ID for the fence that triggered the notification info.This property will be consistent for all notifications for a given fence. For example, use this ID to group enter and exit events for a specific fence to display the current occupancy.
You can combine this property with the
GeotriggerNotificationInfo.getFeedEntityId()
to create an ID that groups all notifications for a given feed element and a specific fence. For example, use a concatenation of the two properties to display a list of areas of interest that are currently occupied and the details of who has entered them.To group events by the geotrigger, use the
Geotrigger.getGeotriggerId()
property.- Returns:
- a unique ID for the fence that triggered the notification info
- Since:
- 100.13.0
- See Also:
GeotriggerNotificationInfo.getFeedEntityId()
,Geotrigger.getGeotriggerId()
-
getFenceNotificationType
public FenceNotificationType getFenceNotificationType()
Gets the type of rule that caused this FenceGeotriggerNotificationInfo.- Returns:
- the type of rule that caused this FenceGeotriggerNotificationInfo
- Since:
- 100.12.0
-
-