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 |
Public methods | |
---|---|
Boolean | |
Instant | |
Length? | |
Instant | |
Int |
hashCode() |
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 . |
getStartTime
Added in API level 34
fun getStartTime(): Instant
Return | |
---|---|
Instant |
This value cannot be null . |