Skip to content

SamplingEventTriggerExecutor

Runs a SamplingEventTrigger: fires on matching measurements in the study.

A measurement matches if its type is SamplingEventTrigger.measureType and its data is equivalent to SamplingEventTrigger.triggerCondition. Fires on every measurement of that type if there is no condition.

Inheritance

Constructors

SamplingEventTriggerExecutor

SamplingEventTriggerExecutor()

Methods

onPause

Future<bool> onPause()
override

Called by pause. Returns true if successfully paused.

If false, the state is not changed.

onResume

Future<bool> onResume()
override

Called by resume. Returns true if successfully resumed.

If false, the executor moves to ExecutorState.PausedButShouldBeResumed.