DelayedTrigger
A trigger that triggers after delay from the (re)start of sampling.
The delay is measured from when the study is resumed, i.e. typically when resume() is called on the SmartphoneStudyController or SmartPhoneClientManager. It triggers again on every resume.
- Inheritance
-
- Object
- Serializable
- TriggerConfiguration
- DelayedTrigger
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
DelayedTrigger.fromJson
DelayedTrigger
- Duration delay = const Duration(),
Creates a trigger that delays for delay and then triggers. Default is no delay.
Properties
delay
getter/setter pair
Delay before this trigger triggers.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
Methods
toJson
Return a JSON encoding of this object.