class ExerciseLap


Captures the time of a lap within an exercise session.

Each lap contains the start and end time and optional [Length] of the lap (e.g. pool length while swimming or a track lap while running). There may or may not be direct correlation with [ExerciseSegment] start and end times, e.g. [ExerciseSessionRecord] of type running without any segments can be divided into laps of different lengths.

Summary

Public constructors

ExerciseLap(startTime: Instant, endTime: Instant, length: Length?)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Instant
Length?

Lap length in Length unit.

Instant

Public constructors

ExerciseLap

Added in 1.1.0-alpha10
ExerciseLap(startTime: Instant, endTime: Instant, length: Length? = null)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

endTime

Added in 1.1.0-alpha10
val endTimeInstant

length

Added in 1.1.0-alpha10
val lengthLength?

Lap length in Length unit. Optional field. Valid range: 0-1000000 meters.

startTime

Added in 1.1.0-alpha10
val startTimeInstant