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 stringHello world
actions
with a list of action stringsstartTracking
,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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 100.15 |
.NET 6.0 | 100.14 - 100.15 |
.NET 6.0 Windows | 100.14 - 100.15 |
.NET Framework | 100.14 - 100.15 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 100.15 |