Added in API level 34
ExerciseSegment
class ExerciseSegment
kotlin.Any | |
↳ | android.health.connect.datatypes.ExerciseSegment |
Represents particular exercise within exercise session (see ExerciseSessionRecord
).
Each record contains start and end time of the exercise, exercise type and optional number of repetitions.
Summary
Nested classes | |
---|---|
Builder class for |
Public methods | |
---|---|
Boolean | |
Instant | |
Int | |
Int | |
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 . |
getRepetitionsCount
Added in API level 34
fun getRepetitionsCount(): Int
Return | |
---|---|
Int |
Value is 0 or greater |
getSegmentType
Added in API level 34
fun getSegmentType(): Int
getStartTime
Added in API level 34
fun getStartTime(): Instant
Return | |
---|---|
Instant |
This value cannot be null . |