| Class Info |
|---|
| public class Scopes Scope constant class, which is used to apply for scopes to access Health Kit data from users. For details, please refer to Obtaining User Authorization. |
| Qualifier and Type | Field and Description |
|---|---|
| static final String | Views the height and weight data from Health Kit. |
| static final String | Stores the height and weight data to Health Kit. |
| static final String | Views the step count from Health Kit. |
| static final String | Stores the step count to Health Kit. |
| static final String | Views the location data (including the trajectory) from Health Kit. |
| static final String | Stores the location data (including the trajectory) to Health Kit. |
| static final String | Views the heart rate data from Health Kit. |
| static final String | Stores the heart rate data to Health Kit. |
| static final String | Views the blood glucose data from Health Kit. |
| static final String | Stores the blood glucose data to Health Kit. |
| static final String | Views the distance, altitude, and ascent data from Health Kit. |
| static final String | Stores the distance, altitude, and ascent data to Health Kit. |
| static final String | Views the calories data (including the basal metabolic rate) from Health Kit. |
| static final String | Stores the calories data (including the basal metabolic rate) to Health Kit. |
| static final String | Views the medium- and high-intensity data from Health Kit. |
| static final String | Stores the medium- and high-intensity data to Health Kit. |
| static final String | Views activity record details (such as exercise heart rate, speed, running form, jump roping speed, cycling cadence, and stroke rate) from Health Kit. |
| static final String | Stores activity record details (such as exercise heart rate, speed, running form, jump roping speed, cycling cadence, and stroke rate) to Health Kit. |
| static final String | Views the sleep data from Health Kit. |
| static final String | Stores the sleep data to Health Kit. |
| static final String | Views the nutrition data from Health Kit. |
| static final String | Stores the nutrition data to Health Kit. |
| static final String | Views the blood pressure data from Health Kit. |
| static final String | Stores the blood pressure data to Health Kit. |
| static final String | HEALTHKIT_OXYGEN_SATURATION_READ Views the SpO2 data from Health Kit. |
| static final String | HEALTHKIT_OXYGEN_SATURATION_WRITE Stores the SpO2 data to Health Kit. |
| static final String | HEALTHKIT_BODYTEMPERATURE_READ Views the body temperature data from Health Kit. |
| static final String | HEALTHKIT_BODYTEMPERATURE_WRITE Stores the body temperature data to Health Kit. |
| static final String | Views the reproductive data from Health Kit. |
| static final String | Stores the reproductive data to Health Kit. |
| static final String | HEALTHKIT_ACTIVITY_RECORD_READ Views activity records (100+ types of activities, including running, cycling, and jump roping) from Health Kit. |
| static final String | HEALTHKIT_ACTIVITY_RECORD_WRITE Stores activity records (100+ types of activities, including running, cycling, and jump roping) to Health Kit. |
| static final String | Views the stress data from Health Kit. |
| static final String | Stores the stress data to Health Kit. |
| static final String | Views the heart health data (such as heart rate variability and ECG) from Health Kit. |
| static final String | Stores the heart health data (such as heart rate variability and electrocardiogram) to Health Kit. |
| static final String | Views pulmonary function data (such as maximum oxygen uptake) from Health Kit. |
| static final String | HEALTHKIT_HISTORYDATA_OPEN_WEEK Views data of the previous week from Health Kit. |
| static final String | HEALTHKIT_HISTORYDATA_OPEN_MONTH Views data of the previous month from Health Kit. |
| static final String | HEALTHKIT_HISTORYDATA_OPEN_YEAR Views data of the previous year from Health Kit. |
| Qualifier and Type | Method Name and Description |
|---|---|
| static String[] | Obtains all scopes. |
| static String[] | Obtains the maximum scopes required. |
| Field |
|---|
| public static final String HEALTHKIT_ACTIVITY_READ Views activity record details (such as exercise heart rate, speed, running form, jump roping speed, cycling cadence, and stroke rate) from Health Kit. Constant value: https://www.huawei.com/healthkit/activity.read |
| Field |
|---|
| public static final String HEALTHKIT_ACTIVITY_WRITE Stores activity record details (such as exercise heart rate, speed, running form, jump roping speed, cycling cadence, and stroke rate) to Health Kit. Constant value: https://www.huawei.com/healthkit/activity.write |
| Field |
|---|
| public static final String HEALTHKIT_BLOODGLUCOSE_READ Views the blood glucose data from Health Kit. Constant value: https://www.huawei.com/healthkit/bloodglucose.read |
| Field |
|---|
| public static final String HEALTHKIT_BLOODGLUCOSE_WRITE Stores the blood glucose data to Health Kit. Constant value: https://www.huawei.com/healthkit/bloodglucose.write |
| Field |
|---|
| public static final String HEALTHKIT_CALORIES_READ Views the calories data (including the basal metabolic rate) from Health Kit. Constant value: https://www.huawei.com/healthkit/calories.read |
| Field |
|---|
| public static final String HEALTHKIT_CALORIES_WRITE Stores the calories data (including the basal metabolic rate) to Health Kit. Constant value: https://www.huawei.com/healthkit/calories.write |
| Field |
|---|
| public static final String HEALTHKIT_DISTANCE_READ Views the distance and ascent from Health Kit. Constant value: https://www.huawei.com/healthkit/distance.read |
| Field |
|---|
| public static final String HEALTHKIT_DISTANCE_WRITE Stores the distance and ascent to Health Kit. Constant value: https://www.huawei.com/healthkit/distance.write |
| Field |
|---|
| public static final String HEALTHKIT_HEARTRATE_READ Views the heart rate data from Health Kit. Constant value: https://www.huawei.com/healthkit/heartrate.read |
| Field |
|---|
| public static final String HEALTHKIT_HEARTRATE_WRITE Stores the heart rate data to Health Kit. Constant value: https://www.huawei.com/healthkit/heartrate.write |
| Field |
|---|
| public static final String HEALTHKIT_HEIGHTWEIGHT_READ Views the height and weight data from Health Kit. Constant Value: https://www.huawei.com/healthkit/heightweight.read |
| Field |
|---|
| public static final String HEALTHKIT_HEIGHTWEIGHT_WRITE Stores the height and weight data to Health Kit. Constant value: https://www.huawei.com/healthkit/heightweight.write |
| Field |
|---|
| public static final String HEALTHKIT_LOCATION_READ Views the location data (including the trajectory) from Health Kit. Constant value: https://www.huawei.com/healthkit/location.read |
| Field |
|---|
| public static final String HEALTHKIT_LOCATION_WRITE Stores the location data (including the trajectory) to Health Kit. Constant value: https://www.huawei.com/healthkit/location.write |
| Field |
|---|
| public static final String HEALTHKIT_SLEEP_READ Views the sleep data from Health Kit. Constant value: https://www.huawei.com/healthkit/sleep.read |
| Field |
|---|
| public static final String HEALTHKIT_SLEEP_WRITE Stores the sleep data to Health Kit. Constant value: https://www.huawei.com/healthkit/sleep.write |
| Field |
|---|
| public static final String HEALTHKIT_SPEED_READ Views the speed data from Health Kit. Constant value: https://www.huawei.com/healthkit/speed.read |
| Field |
|---|
| public static final String HEALTHKIT_SPEED_WRITE Stores the speed data to Health Kit. Constant value: https://www.huawei.com/healthkit/speed.write |
| Field |
|---|
| public static final String HEALTHKIT_STEP_READ Views the step count from Health Kit. Constant value: https://www.huawei.com/healthkit/step.read |
| Field |
|---|
| public static final String HEALTHKIT_STEP_WRITE Stores the step count to Health Kit. Constant value: https://www.huawei.com/healthkit/step.write |
| Field |
|---|
| public static final String HEALTHKIT_STRENGTH_READ Views the medium- and high-intensity data from Health Kit. Constant value: https://www.huawei.com/healthkit/strength.read |
| Field |
|---|
| public static final String HEALTHKIT_STRENGTH_WRITE Stores the medium- and high-intensity data to Health Kit. Constant value: https://www.huawei.com/healthkit/strength.write |
| Field |
|---|
| public static final String HEALTHKIT_NUTRITION_READ Views the nutrition data from Health Kit. Constant value: https://www.huawei.com/healthkit/nutrition.read |
| Field |
|---|
| public static final String HEALTHKIT_NUTRITION_WRITE Stores the nutrition data to Health Kit. Constant value: https://www.huawei.com/healthkit/nutrition.write |
| Field |
|---|
| public static final String HEALTHKIT_BLOODPRESSURE_READ Views the blood pressure data from Health Kit. Constant value: https://www.huawei.com/healthkit/bloodpressure.read |
| Field |
|---|
| public static final String HEALTHKIT_BLOODPRESSURE_WRITE Stores the blood pressure data to Health Kit. Constant value: https://www.huawei.com/healthkit/bloodpressure.write |
| Field |
|---|
| public static final String HEALTHKIT_BODYTEMPERATURE_READ Views the body temperature data from Health Kit. Constant value: https://www.huawei.com/healthkit/bodytemperature.read |
| Field |
|---|
| public static final String HEALTHKIT_BODYTEMPERATURE_WRITE Stores the body temperature data to Health Kit. Constant value: https://www.huawei.com/healthkit/bodytemperature.write |
| Field |
|---|
| public static final String HEALTHKIT_OXYGEN_SATURATION_READ Views the SpO2 data from Health Kit. Constant value: https://www.huawei.com/healthkit/oxygensaturation.read |
| Field |
|---|
| public static final String HEALTHKIT_OXYGEN_SATURATION_WRITE Stores the SpO2 data to Health Kit. Constant value: https://www.huawei.com/healthkit/oxygensaturation.write |
| Field |
|---|
| public static final String HEALTHKIT_REPRODUCTIVE_READ Views the reproductive data from Health Kit. Constant value: https://www.huawei.com/healthkit/reproductive.read |
| Field |
|---|
| public static final String HEALTHKIT_REPRODUCTIVE_WRITE Stores the reproductive data to Health Kit. Constant value: https://www.huawei.com/healthkit/reproductive.write |
| Field |
|---|
| public static final String HEALTHKIT_ACTIVITY_RECORD_READ Views activity records (100+ types of activities, including running, cycling, and jump roping) from Health Kit. Constant value: https://www.huawei.com/healthkit/activityrecord.read |
| Field |
|---|
| public static final String HEALTHKIT_ACTIVITY_RECORD_WRITE Stores activity records (100+ types of activities, including running, cycling, and jump roping) to Health Kit. Constant value: https://www.huawei.com/healthkit/activityrecord.write |
| Field |
|---|
| public static final String HEALTHKIT_STRESS_READ Views the stress data from Health Kit. Constant value: https://www.huawei.com/healthkit/stress.read |
| Field |
|---|
| public static final String HEALTHKIT_STRESS_WRITE Stores the stress data to Health Kit. Constant value: https://www.huawei.com/healthkit/stress.write |
| Field |
|---|
| public static final String HEALTHKIT_HEARTHEALTH_READ Views the heart health data (such as heart rate variability and ECG) from Health Kit. Constant Value: https://www.huawei.com/healthkit/hearthealth.read |
| Field |
|---|
| public static final String HEALTHKIT_HEARTHEALTH_WRITE Stores the heart health data (such as heart rate variability and electrocardiogram) to Health Kit. Constant Value: https://www.huawei.com/healthkit/hearthealth.write |
| Field |
|---|
| public static final String HEALTHKIT_HEARTHEALTH_WRITE Reads pulmonary function data (such as maximum oxygen uptake) from Health Kit. Constant Value: https://www.huawei.com/healthkit/pulmonary.read |
| Field |
|---|
| public static final String HEALTHKIT_HEARTHEALTH_WRITE Writes pulmonary function data (such as maximum oxygen uptake) to Health Kit. Constant Value: https://www.huawei.com/healthkit/pulmonary.write |
| Field |
|---|
| public static final String HEALTHKIT_HISTORYDATA_OPEN_WEEK Views data of the previous week from Health Kit. Constant Value: https://www.huawei.com/healthkit/historydata.open.week |
| Field |
|---|
| public static final String HEALTHKIT_HISTORYDATA_OPEN_MONTH Views data of the previous month from Health Kit. Constant Value: https://www.huawei.com/healthkit/historydata.open.month |
| Field |
|---|
| public static final String HEALTHKIT_HISTORYDATA_OPEN_YEAR Views data of the previous year from Health Kit. Constant Value: https://www.huawei.com/healthkit/historydata.open.year |