目录

Golf

The following table lists the golf exercise record type.

Workout Type Constant

Description

Data Source

HiHealthActivities.GOLF

Playing golf.

Watches and bands

Sport Feature Statistics

Field

Description

Constant in the SDK for Android

Type

Mandatory

Unit

Value Range

golf_swing_count

Total swings.

Field.GOLF_SWING_COUNT

int

Yes

Swing

-

golf_swing_speed

Average swing speed.

Field.GOLF_SWING_SPEED

int

No

cm/s

-

golf_max_swing_speed

Maximum swing speed.

Field.GOLF_MAX_SWING_SPEED

int

No

cm/s

-

golf_swing_tempo

Average swing tempo (average backswing time/average downswing time).

Field.GOLF_SWING_TEMPO

double

No

-

-

golf_down_swing_time

Average downswing time.

Field.GOLF_DOWN_SWING_TIME

int

No

Millisecond

-

golf_back_swing_time

Average backswing time.

Field.GOLF_BACK_SWING_TIME

int

No

Millisecond

-

Associated Sampling Statistical Data Type

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.

Associated Atomic Sampling Data

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.

Scenario Example

None.