OneTimeTrigger
A trigger that triggers only once during a deployment.
In contrast to ImmediateTrigger, which triggers every time the app is (re)started, this OneTimeTrigger only triggers once during the life-time of a deployment. Useful for triggering e.g., a demographic survey or collecting device information.
- Inheritance
-
- Object
- Serializable
- TriggerConfiguration
- OneTimeTrigger
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
OneTimeTrigger.fromJson
OneTimeTrigger
Creates a trigger that triggers once during a deployment.
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
hasBeenTriggered
Whether this trigger has been triggered.
triggerTimestamp
getter/setter pair
When this trigger was triggered, or null if not yet.
Set by the runtime and saved with the deployment.
Methods
toJson
Return a JSON encoding of this object.