Skip to content

ElapsedTimeTriggerExecutor

Runs an ElapsedTimeTrigger, i.e. fires once, a set time after deployment.

The time is counted from when the study was deployed on this phone. Does not fire if that time has already passed.

Inheritance

Constructors

ElapsedTimeTriggerExecutor

ElapsedTimeTriggerExecutor()

Methods

getSchedule

List<DateTime> getSchedule(
  1. DateTime from,
  2. DateTime to, [
  3. int? max
])
override

Returns the times this trigger fires between from and to.

Ordered by time, except for RandomRecurrentTriggerExecutor.

max limits the number of iterations; its default depends on the implementation.

onResume

Future<bool> onResume()
override

Called by resume. Returns true if successfully resumed.

If false, the executor moves to ExecutorState.PausedButShouldBeResumed.