SmartPhoneClientManager class Null safety



SmartPhoneClientManager({DeploymentService? deploymentService, DeviceController? deviceRegistry})


deploymentService DeploymentService
The application service through which study deployments, to be run on this client, can be managed and retrieved.
read / write, inherited
deviceRegistry DeviceController
The registry of connected devices used to collect data locally on this master device. Also works as a factory which is used to create DeviceDataCollector instances for connected devices.
read / write, inherited-setter, override-getter
hashCode int
The hash code for this object. [...]
read-only, inherited
isConfigured bool
Determines whether a DeviceRegistration has been configured for this client, which is necessary to start adding StudyRuntimes.
read-only, inherited
registration DeviceRegistration?
The registration of this client device.
read / write, inherited
repository Map<StudyRuntimeId, StudyRuntime>
Repository within which the state of this client is stored.
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


addStudy(String studyDeploymentId, String deviceRoleName) Future<SmartphoneDeploymentController>
Add a study which needs to be executed on this client. This involves registering this device for the specified study deployment. [...]
configure({String? deviceId}) Future<DeviceRegistration>
Configure the DeviceRegistration used to register this client device in study deployments managed by the deploymentService.
getStudiesStatus() List<StudyRuntimeStatus>
Get the status for the studies which run on this client device.
getStudyRuntime(StudyRuntimeId studyRuntimeId) StudyRuntime?
Get the StudyRuntime with the unique studyRuntimeId.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
stopStudy(StudyRuntimeId studyRuntimeId) → void
Permanently stop collecting data for the study runtime identified by studyRuntimeId.
@mustCallSuper, inherited
toString() String
A string representation of this object. [...]
tryDeployment(StudyRuntimeId studyRuntimeId) Future<StudyRuntimeStatus>
Verifies whether the device is ready for deployment of the study runtime identified by studyRuntimeId, and in case it is, deploys. In case already deployed, nothing happens.
@mustCallSuper, inherited


operator ==(Object other) bool
The equality operator. [...]