GraphicsOverlayFenceParameters

Geotrigger fence parameters data created from a com.arcgismaps.mapping.view.GraphicsOverlay. The com.arcgismaps.mapping.view.GraphicsOverlay used to create a GraphicsOverlayFenceParameters provides a dynamic set of graphics 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", "my target areas" are the graphics in the overlay. Changes to the com.arcgismaps.mapping.view.GraphicsOverlay will be reflected in the fences tracked by the Geotrigger.

A GraphicsOverlayFenceParameters allows you to track all of the graphics displayed on the com.arcgismaps.mapping.view.GeoView in a com.arcgismaps.mapping.view.GraphicsOverlay. This allows you to track new target areas as they are added to the view and to stop tracking areas that are removed. If you wish to track a subset of the graphics displayed in a com.arcgismaps.mapping.view.GraphicsOverlay, or graphics which are not displayed in a com.arcgismaps.mapping.view.GeoView, use a GraphicFenceParameters.

The graphics can have point, line, or polygon geometry. A FenceParameters.bufferDistance must be supplied for points or lines.

Since

200.1.0

Constructors

Link copied to clipboard
constructor(graphicsOverlay: GraphicsOverlay, bufferDistance: Double = 0.0)

Creates a GraphicsOverlayFenceParameters using all of the graphics in the com.arcgismaps.mapping.view.GraphicsOverlay buffered by the buffer distance. Note that the GraphicsOverlayFenceParameters will respect any changes made to the supplied graphics overlay - for example, if a com.arcgismaps.mapping.view.Graphic is removed or added to the original com.arcgismaps.mapping.view.GraphicsOverlay, it will be added or removed as a fence.

Properties

Link copied to clipboard

Inherited properties

Link copied to clipboard

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.