Skip to content

PrimaryDevice

Base class for CAMS primary device configurations.

A primary device runs the study and collects data from connected devices. Smartphone is the built-in one; extend this class to define other types of primary devices supported by different CAMS apps (see issue #546).

Inheritance
Implementers

Constructors

PrimaryDevice

PrimaryDevice<TRegistration extends DeviceRegistration>({
  1. required String roleName,
})

Properties

jsonType

String get jsonType
override

Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.