Class FenceGeotriggerNotificationInfo
GeotriggerNotificationInfo
from a FenceGeotrigger
.- Since:
- 100.12.0
-
Method Summary
Modifier and TypeMethodDescriptionGets theGeoElement
from the fence data that meets theFenceGeotrigger
condition.Gets theGeometry
used for the fence that satisfies theFenceGeotrigger
condition.Gets a unique ID for the fence that triggered the notification info.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 Details
-
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
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
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:
-
getFenceNotificationType
Gets the type of rule that caused this FenceGeotriggerNotificationInfo.- Returns:
- the type of rule that caused this FenceGeotriggerNotificationInfo
- Since:
- 100.12.0
-