FenceParameters

sealed class FenceParameters

Geotrigger fence data required for a FenceGeotrigger. The FenceParameters defines all of the target geometries of a FenceGeotrigger. Typically, it is made up of many polygons that objects from the GeotriggerFeed can enter or exit. However, if you set a FenceParameters.getBufferDistance(), point and line geometry can also be used. For example, if the condition is "notify me when my position comes within 50 meters of one of my target areas", the fence data would be "my target areas".

Fence data can be created as one of:

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val bufferDistance: Double

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.getRuleType() of FenceRuleType.Enter and set this property to 50.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard