目录

Scopes

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.

Public Field Summary

Qualifier and Type

Field and Description

static final String

HEALTHKIT_HEIGHTWEIGHT_READ

Views the height and weight data from Health Kit.

static final String

HEALTHKIT_HEIGHTWEIGHT_WRITE

Stores the height and weight data to Health Kit.

static final String

HEALTHKIT_STEP_READ

Views the step count from Health Kit.

static final String

HEALTHKIT_STEP_WRITE

Stores the step count to Health Kit.

static final String

HEALTHKIT_LOCATION_READ

Views the location data (including the trajectory) from Health Kit.

static final String

HEALTHKIT_LOCATION_WRITE

Stores the location data (including the trajectory) to Health Kit.

static final String

HEALTHKIT_HEARTRATE_READ

Views the heart rate data from Health Kit.

static final String

HEALTHKIT_HEARTRATE_WRITE

Stores the heart rate data to Health Kit.

static final String

HEALTHKIT_BLOODGLUCOSE_READ

Views the blood glucose data from Health Kit.

static final String

HEALTHKIT_BLOODGLUCOSE_WRITE

Stores the blood glucose data to Health Kit.

static final String

HEALTHKIT_DISTANCE_READ

Views the distance, altitude, and ascent data from Health Kit.

static final String

HEALTHKIT_DISTANCE_WRITE

Stores the distance, altitude, and ascent data to Health Kit.

static final String

HEALTHKIT_CALORIES_READ

Views the calories data (including the basal metabolic rate) from Health Kit.

static final String

HEALTHKIT_CALORIES_WRITE

Stores the calories data (including the basal metabolic rate) to Health Kit.

static final String

HEALTHKIT_STRENGTH_READ

Views the medium- and high-intensity data from Health Kit.

static final String

HEALTHKIT_STRENGTH_WRITE

Stores the medium- and high-intensity data to Health Kit.

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.

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.

static final String

HEALTHKIT_SLEEP_READ

Views the sleep data from Health Kit.

static final String

HEALTHKIT_SLEEP_WRITE

Stores the sleep data to Health Kit.

static final String

HEALTHKIT_NUTRITION_READ

Views the nutrition data from Health Kit.

static final String

HEALTHKIT_NUTRITION_WRITE

Stores the nutrition data to Health Kit.

static final String

HEALTHKIT_BLOODPRESSURE_READ

Views the blood pressure data from Health Kit.

static final String

HEALTHKIT_BLOODPRESSURE_WRITE

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

HEALTHKIT_REPRODUCTIVE_READ

Views the reproductive data from Health Kit.

static final String

HEALTHKIT_REPRODUCTIVE_WRITE

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

HEALTHKIT_STRESS_READ

Views the stress data from Health Kit.

static final String

HEALTHKIT_STRESS_WRITE

Stores the stress data to Health Kit.

static final String

HEALTHKIT_HEARTHEALTH_READ

Views the heart health data (such as heart rate variability and ECG) from Health Kit.

static final String

HEALTHKIT_HEARTHEALTH_WRITE

Stores the heart health data (such as heart rate variability and electrocardiogram) to Health Kit.

static final String

HEALTHKIT_PULMONARY_READ

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.

Public Method Summary

Qualifier and Type

Method Name and Description

static String[]

getAllScopes()

Obtains all scopes.

static String[]

getMaxScopes()

Obtains the maximum scopes required.

Public Fields

[h2]HEALTHKIT_ACTIVITY_READ

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

[h2]HEALTHKIT_ACTIVITY_WRITE

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

[h2]HEALTHKIT_BLOODGLUCOSE_READ

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

[h2]HEALTHKIT_BLOODGLUCOSE_WRITE

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

[h2]HEALTHKIT_CALORIES_READ

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

[h2]HEALTHKIT_CALORIES_WRITE

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

[h2]HEALTHKIT_DISTANCE_READ

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

[h2]HEALTHKIT_DISTANCE_WRITE

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

[h2]HEALTHKIT_HEARTRATE_READ

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

[h2]HEALTHKIT_HEARTRATE_WRITE

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

[h2]HEALTHKIT_HEIGHTWEIGHT_READ

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

[h2]HEALTHKIT_HEIGHTWEIGHT_WRITE

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

[h2]HEALTHKIT_LOCATION_READ

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

[h2]HEALTHKIT_LOCATION_WRITE

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

[h2]HEALTHKIT_SLEEP_READ

Field

public static final String HEALTHKIT_SLEEP_READ

Views the sleep data from Health Kit.

Constant value: https://www.huawei.com/healthkit/sleep.read

[h2]HEALTHKIT_SLEEP_WRITE

Field

public static final String HEALTHKIT_SLEEP_WRITE

Stores the sleep data to Health Kit.

Constant value: https://www.huawei.com/healthkit/sleep.write

[h2]HEALTHKIT_SPEED_READ

Field

public static final String HEALTHKIT_SPEED_READ

Views the speed data from Health Kit.

Constant value: https://www.huawei.com/healthkit/speed.read

[h2]HEALTHKIT_SPEED_WRITE

Field

public static final String HEALTHKIT_SPEED_WRITE

Stores the speed data to Health Kit.

Constant value: https://www.huawei.com/healthkit/speed.write

[h2]HEALTHKIT_STEP_READ

Field

public static final String HEALTHKIT_STEP_READ

Views the step count from Health Kit.

Constant value: https://www.huawei.com/healthkit/step.read

[h2]HEALTHKIT_STEP_WRITE

Field

public static final String HEALTHKIT_STEP_WRITE

Stores the step count to Health Kit.

Constant value: https://www.huawei.com/healthkit/step.write

[h2]HEALTHKIT_STRENGTH_READ

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

[h2]HEALTHKIT_STRENGTH_WRITE

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

[h2]HEALTHKIT_NUTRITION_READ

Field

public static final String HEALTHKIT_NUTRITION_READ

Views the nutrition data from Health Kit.

Constant value: https://www.huawei.com/healthkit/nutrition.read

[h2]HEALTHKIT_NUTRITION_WRITE

Field

public static final String HEALTHKIT_NUTRITION_WRITE

Stores the nutrition data to Health Kit.

Constant value: https://www.huawei.com/healthkit/nutrition.write

[h2]HEALTHKIT_BLOODPRESSURE_READ

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

[h2]HEALTHKIT_BLOODPRESSURE_WRITE

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

[h2]HEALTHKIT_BODYTEMPERATURE_READ

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

[h2]HEALTHKIT_BODYTEMPERATURE_WRITE

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

[h2]HEALTHKIT_OXYGEN_SATURATION_READ

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

[h2]HEALTHKIT_OXYGEN_SATURATION_WRITE

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

[h2]HEALTHKIT_REPRODUCTIVE_READ

Field

public static final String HEALTHKIT_REPRODUCTIVE_READ

Views the reproductive data from Health Kit.

Constant value: https://www.huawei.com/healthkit/reproductive.read

[h2]HEALTHKIT_REPRODUCTIVE_WRITE

Field

public static final String HEALTHKIT_REPRODUCTIVE_WRITE

Stores the reproductive data to Health Kit.

Constant value: https://www.huawei.com/healthkit/reproductive.write

[h2]HEALTHKIT_ACTIVITY_RECORD_READ

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

[h2]HEALTHKIT_ACTIVITY_RECORD_WRITE

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

[h2]HEALTHKIT_STRESS_READ

Field

public static final String HEALTHKIT_STRESS_READ

Views the stress data from Health Kit.

Constant value: https://www.huawei.com/healthkit/stress.read

[h2]HEALTHKIT_STRESS_WRITE

Field

public static final String HEALTHKIT_STRESS_WRITE

Stores the stress data to Health Kit.

Constant value: https://www.huawei.com/healthkit/stress.write

[h2]HEALTHKIT_HEARTHEALTH_READ

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

[h2]HEALTHKIT_HEARTHEALTH_WRITE

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

[h2]HEALTHKIT_PULMONARY_READ

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

[h2]HEALTHKIT_PULMONARY_WRITE

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

[h2]HEALTHKIT_HISTORYDATA_OPEN_WEEK

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

[h2]HEALTHKIT_HISTORYDATA_OPEN_MONTH

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

[h2]HEALTHKIT_HISTORYDATA_OPEN_YEAR

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

Public Methods

[h2]getAllScopes()

Method

public static String[] getAllScopes()

Obtains all scopes.

Returns

Type

Description

String[]

All scopes.

[h2]getMaxScopes()

Method

public static String[] getMaxScopes()

Obtains the maximum scopes required.

Returns

Type

Description

String[]

Maximum scope required.