SwimmingLog

SwimmingLog specifies the Swimming Data of an Exercise data record. The exercise log at a specific time during an ExerciseSession. It's for swimming exercise.

Data Specification

SwimmingLog consists of the following properties.

PropertyDescription
poolLength[Mandatory]
The pool length. It's unit follows the poolLengthUnit.
poolLengthUnit[Mandatory]
The unit of the pool length ('meter' or 'yard').
totalDistanceThe total swimming distance. It's unit follows the poolLengthUnit.
totalDurationThe total swimming duration in seconds, specified as Duration, in milliseconds.
swimmingIntervalsThe list of detail information of SwimmingInterval.

Since

1.0.0

See also

Types

Link copied to clipboard
object Companion : Parceler<SwimmingLog>
Link copied to clipboard

SwimmingInterval specifies the Swimming Interval of a Swimming Data. SwimmingLog.swimmingIntervals.

Properties

Link copied to clipboard

The pool length. It's unit follows the poolLengthUnit. For OPEN_WATER_SWIMMING, the pool length should be equal to 1 and for POOL_SWIMMING, the pool length should be greater than 1.

Link copied to clipboard

The unit of the pool length ('meter' or 'yard')

Link copied to clipboard

The list of detail information of swimming Interval. For writing swimming exercise data, set the sum of duration in the SwimmingInterval list to be less than or equal to the SwimmingLog.totalDuration.

Link copied to clipboard

The total swimming distance. It's unit follows the poolLengthUnit.

Link copied to clipboard

The total swimming duration in seconds, specified as Duration, in milliseconds.

Preferences Submitted

You have successfully updated your cookie preferences.