Class FenceGeotriggerNotificationInfo
- java.lang.Object
-
- com.esri.arcgisruntime.geotriggers.GeotriggerNotificationInfo
-
- com.esri.arcgisruntime.geotriggers.FenceGeotriggerNotificationInfo
-
public class FenceGeotriggerNotificationInfo extends GeotriggerNotificationInfo
AGeotriggerNotificationInfofrom aFenceGeotrigger.- Since:
- 100.12.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoElementgetFenceGeoElement()Gets theGeoElementfrom the fence data that meets theFenceGeotriggercondition.GeometrygetFenceGeometry()Gets theGeometryused for the fence that satisfies theFenceGeotriggercondition.java.lang.StringgetFenceId()Gets a unique ID for the fence that triggered the notification info.FenceNotificationTypegetFenceNotificationType()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 theGeoElementfrom the fence data that meets theFenceGeotriggercondition.The
GeoElementis one of the features or graphics from theFenceParametersused to create theFenceGeotrigger. Inspect theGeoElement.getAttributes()andGeoElement.getGeometry()properties for more details.- Returns:
- the
GeoElementfrom the fence data that meets theFenceGeotriggercondition - Since:
- 100.12.0
-
getFenceGeometry
public Geometry getFenceGeometry()
Gets theGeometryused for the fence that satisfies theFenceGeotriggercondition.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
Geometryused for the fence that satisfies theFenceGeotriggercondition - 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
-
-