ExerciseLapSummary

class ExerciseLapSummary


Describes a completed exercise lap.

Summary

Public constructors

ExerciseLapSummary(
    lapCount: Int,
    startTime: Instant,
    endTime: Instant,
    activeDuration: Duration,
    lapMetrics: DataPointContainer
)

Public functions

open String

Public properties

Duration

Returns the total elapsed time for which the exercise has been active during this lap, i.e. started but not paused.

Instant

Returns the time at which the lap has ended.

Int

Returns the lap count of this summary.

DataPointContainer

Returns the DataPoints for each metric keyed by DataType tracked between startTime and endTime i.e. during the duration of this lap.

Instant

Returns the time at which the lap has started.

Public constructors

ExerciseLapSummary

Added in 1.0.0
ExerciseLapSummary(
    lapCount: Int,
    startTime: Instant,
    endTime: Instant,
    activeDuration: Duration,
    lapMetrics: DataPointContainer
)

Public functions

toString

open fun toString(): String

Public properties

activeDuration

Added in 1.0.0
val activeDurationDuration

Returns the total elapsed time for which the exercise has been active during this lap, i.e. started but not paused.

endTime

Added in 1.0.0
val endTimeInstant

Returns the time at which the lap has ended.

lapCount

Added in 1.0.0
val lapCountInt

Returns the lap count of this summary. Lap count starts at 1 for the first lap.

lapMetrics

Added in 1.0.0
val lapMetricsDataPointContainer

Returns the DataPoints for each metric keyed by DataType tracked between startTime and endTime i.e. during the duration of this lap. This will only contain AggregateDataTypes calculated over the duration of the lap.

startTime

Added in 1.0.0
val startTimeInstant

Returns the time at which the lap has started.