GeotriggerNotificationInfo

sealed class GeotriggerNotificationInfo

Provides details about a Geotrigger condition that has been met. A GeotriggerNotificationInfo is sent by a GeotriggerMonitor whenever the condition described by its Geotrigger is met. The Geotrigger also defines how the GeotriggerNotificationInfo should be created. For example, it describes what message should be displayed to the user.

Properties

Link copied to clipboard
val actions: List<String>

A set of strings describing recommended actions based on this notification. Optionally, use these strings to determine whether your app will perform custom behavior, such as showing messages or starting/stopping tracking. Note that there is no requirement to take any action when a notification is delivered, but these provide a way to understand the intention of the author of the Geotrigger. This property can be empty.

Link copied to clipboard
val feedEntityId: String

A unique ID for the entity within the feed that triggered the notification info. This property is consistent for all notifications for a given feed entity. For example, use this ID to count the number of sites a team member visits.

Link copied to clipboard
val feedLocation: Location?
Link copied to clipboard
val geotriggerMonitor: GeotriggerMonitor
Link copied to clipboard
val message: String

A message that describes the notification. The notification message is the result of evaluating the Geotrigger.getMessageExpression() for the specific objects that triggered this notification. The message could be a hard-coded string or use attributes from an area of interest that was entered to display a custom message.

Link copied to clipboard
val messageProperties: Map<String, Any>

Inheritors

Link copied to clipboard