onStart method

  1. @mustCallSuper
void onStart()

Called by the app when the user starts this task.

Initializes backgroundTaskExecutor and sets state to UserTaskState.started.

Implementation

@mustCallSuper
void onStart() {
  // initialize the background task which holds any measures added to the app task
  backgroundTaskExecutor.initialize(task.backgroundTask, _executor.deployment);

  state = UserTaskState.started;
}