ElapsedTimeTrigger
A trigger which starts a task after elapsedTime has elapsed since the start of a study deployment, i.e. when a protocol is deployed on the phone for the first time.
Never stops sampling once started.
- Inheritance
-
- Object
- Serializable
- TriggerConfiguration
- ElapsedTimeTrigger
- Implemented types
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
ElapsedTimeTrigger.fromJson
ElapsedTimeTrigger
Create a trigger that starts after elapsedTime has elapsed since the start of the study deployment.
Properties
elapsedTime
- @JsonKey(toJson: _$IsoDurationToJson, fromJson: _$IsoDurationFromJson)
getter/setter pair
Elapsed time since start of the study deployment. If null, sampling starts immediately.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
Methods
toJson
Return a JSON encoding of this object.