healthDataTypes property

List<HealthDataType>? healthDataTypes
getter/setter pair

The health data types this section explains the need for.

Health data is not a single permission — Apple HealthKit and Android Health Connect authorise each data type separately — so listing RPPermissionType.health in permissions is not enough on its own. This is the list which is actually asked for, and it also documents in the consent document itself which health data the study reads.

Read access is requested for every type listed. Ignored unless permissions contains RPPermissionType.health; conversely, that permission resolves to RPPermissionStatus.unsupported if this is null or empty, since there would be nothing to ask for.

Implementation

List<HealthDataType>? healthDataTypes;