startStudy method

  1. @mustCallSuper
Future<void> startStudy(
  1. String studyDeploymentId,
  2. String deviceRoleName
)

Start the study with studyDeploymentId and deviceRoleName from this client manager.

Note that startStudy only needs to be called once. Once started, data sampling can be resumed and paused via the controller's resume and pause methods.

Implementation

@mustCallSuper
Future<void> startStudy(
  String studyDeploymentId,
  String deviceRoleName,
) async {
  var study = getStudy(studyDeploymentId, deviceRoleName);
  if (study != null) getStudyController(study)?.start();
}