The following table lists the strength training record type.
Workout Type | Description | Constant | Data Source |
|---|---|---|---|
strength_training | Strength training. | 79 | Bands and watches. |
You do not need to request OAuth scopes for each sampling statistical data type associated with an exercise record. This is because the sampling statistical data types associated with an exercise record are included in the summary data of ActivityRecord. You can access them with the scopes for accessing exercise records.
Sampling Statistical Data Type | Description | Mandatory | Remarks |
|---|---|---|---|
com.huawei.continuous.calories.burnt.total | Calorie statistics. | Yes | - |
com.huawei.continuous.exercise_heart_rate.statistics | Workout heart rate statistics. | No | Available when the user wears Huawei watches or bands. |
com.huawei.activity.training.statistics.v2 | Training statistics. | No | - |
com.huawei.resting_calories.statistics | Resting calories statistics. | No | - |
Training feature statistical data type: com.huawei.activity.training.statistics.v2
Field | Description | Type | Mandatory | Unit | Value Range |
|---|---|---|---|---|---|
totalActionGroups | Number of completed sets. | int | Yes | Number | [0, 99] |
actionCount | Number of actions. | int | Yes | Number | [0, 99] |
totalTrainingVolume | Sum of all lifted weight. | int | No | kg | [0, 99999] |
trainingWeight | Training weight. | int | No | kg | [0, 999] |
rpe | Rate of perceived exertion (RPE). A higher value indicate greater exertion. | int | No | - | [1, 10] |
For details about the data scope, please refer to OAuth Scope Description.
Atomic Sampling Data Type | Description | Mandatory | Remarks |
|---|---|---|---|
com.huawei.instantaneous.exercise_heart_rate | Workout heart rate details. | No | Available when the user wears Huawei watches or bands. |
com.huawei.recovery_heart_rate | Recovery heart rate details. | No | - |
Atomic Sampling Data Type | Description | Mandatory | Remarks |
|---|---|---|---|
com.huawei.activity.training.v2 | Strength training details. | No | Available when the user wears Huawei watches or bands. |
Training segment data type: com.huawei.activity.training.v2
Field | Description | Type | Mandatory | Unit | Value Range |
|---|---|---|---|---|---|
actionName | Action name. | string | Yes | - | Cannot exceed 50 bytes. |
trainingWeight | Training weight. | int | No | - | [0, 9999] |
weightUnit | Weight unit. | string | No | - | kg,lbs |
groupCount | Training times. | int | Yes | Times | - |
groupTime | Duration per set. | int | Yes | Second | [0, 9999] |
groupRestingTime | Rest duration between sets. | int | No | Second | [0, 9999] |