BackgroundTask
A task which specifies that all containing measures and/or outputs should immediately start running in the background once triggered.
The task runs for the specified duration, or until stopped, or until all measures and/or outputs have completed. This is the usual task type for passive sensing.
- Inheritance
-
- Object
- Serializable
- TaskConfiguration
- BackgroundTask
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
BackgroundTask.fromJson
BackgroundTask
Create a new task which can run in the background.
Properties
duration
- @JsonKey(toJson: _$IsoDurationToJson, fromJson: _$IsoDurationFromJson)
getter/setter pair
The optional duration over the course of which the measures need to be sampled. Null implies infinite by default.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
Methods
toJson
Return a JSON encoding of this object.