Graphic Fence Parameters
Geotrigger fence parameters data created from graphics. The graphics used to create a GraphicFenceParameters provide a set of geometries and attributes that define targets for a FenceGeotrigger condition. For example, if the condition is "notify me when my position comes within 50 meters of one of my target areas", the fence data is "my target areas".
A GraphicFenceParameters allows you to track a specific set of com.arcgismaps.mapping.view.Graphic objects: these can be a selection of the graphics from a com.arcgismaps.mapping.view.GraphicsOverlay or graphics that are not displayed on a com.arcgismaps.mapping.view.GeoView. If you wish to track all of the graphics displayed in a com.arcgismaps.mapping.view.GraphicsOverlay, use a GraphicsOverlayFenceParameters.
A GraphicFenceParameters is created using a list of com.arcgismaps.mapping.view.Graphic objects. The graphics can have point, line, or polygon geometry. A FenceParameters.bufferDistance must be supplied for points or lines.
Since
200.1.0
Constructors
Creates a GraphicFenceParameters that will apply a buffer distance to any graphics that are added to GraphicFenceParameters.graphics.
Creates a GraphicFenceParameters that will apply a buffer distance to any graphics that are added to GraphicFenceParameters.graphics.
Properties
The graphics to use in the GraphicFenceParameters. This collection will be tracked when monitoring a Geotrigger such that any graphics that are added will be included and any that are removed will no longer be checked.
Inherited properties
A buffer distance in meters to apply when checking if a FenceGeotrigger condition is met. For example, if the rule is "enters within 50 meters" you use a FenceGeotrigger.ruleType of FenceRuleType.Enter and set this property to 50.