Show / Hide Table of Contents

Property Actions

Actions

Gets a set of strings describing recommended actions based on this notification.

Declaration
public IReadOnlyList<string> Actions { get; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyList<System.String>

A set of strings describing recommended actions based on this notification.

Remarks

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.

These actions are the result of evaluating the MessageExpression for the specific objects that triggered this notification. If the expression returns a dictionary containing a list of strings with the key "actions", they are shown in this property.

For example, if the MessageExpression evaluates to a dictionary of MessageProperties containing the following key value pairs:

  • message with the string Hello world
  • actions with a list of action strings startTracking,showMessage

... then this property returns a list containing "startTracking" and "showMessage". The list of actions are simple strings, so you can use them to control any custom action for your app.

The author of a Geotrigger can supply a set of all the possible RequestedActions when defining the Geotrigger. This property returns a list of strings indicating the actions that should be taken by your app, based on this GeotriggerNotificationInfo.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 200.7
.NET100.14 - 200.7
.NET Windows100.14 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.14 - 200.7
Xamarin.Android100.14 - 100.15
Xamarin.iOS100.14 - 100.15
UWP100.14 - 200.7
In This Article
Back to top Copyright © 2022 Esri.