Added in API level 34

ExerciseLap


class ExerciseLap
kotlin.Any
   ↳ android.health.connect.datatypes.ExerciseLap

Captures the time of a lap within exercise session. Part of ExerciseSessionRecord.

Each record 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 as laps of different lengths.

Summary

Nested classes

Builder class for ExerciseLap

Public methods
Boolean
equals(other: Any?)

Instant

Length?

Instant

Int

Public methods

equals

Added in API level 34
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getEndTime

Added in API level 34
fun getEndTime(): Instant
Return
Instant This value cannot be null.

getLength

Added in API level 34
fun getLength(): Length?
Return
Length? This value may be null.

getStartTime

Added in API level 34
fun getStartTime(): Instant
Return
Instant This value cannot be null.

hashCode

Added in API level 34
fun hashCode(): Int
Return
Int a hash code value for this object.