Skip to content

StudyProtocolManager

Gets and saves SmartphoneStudyProtocols, e.g. from local files or a server.

Apps implement it to load the protocol they run. See FileStudyProtocolManager for an example.

Implementers

Constructors

StudyProtocolManager

StudyProtocolManager()

Methods

getStudyProtocol

Future<SmartphoneStudyProtocol?> getStudyProtocol(
  1. String id
)

Gets a SmartphoneStudyProtocol based on its id. Returns null if no protocol exists.

initialize

void initialize()

Initializes this manager. Call it before any other method.

saveStudyProtocol

Future<bool> saveStudyProtocol(
  1. String id,
  2. SmartphoneStudyProtocol protocol
)

Saves protocol with the ID id. Returns true if successful, false otherwise.