Added in API level 34
Builder
class Builder
kotlin.Any | |
↳ | android.health.connect.datatypes.ExerciseSegment.Builder |
Builder class for ExerciseSegment
Summary
Public constructors | |
---|---|
Public methods | |
---|---|
ExerciseSegment |
build() Sets the number repetitions to the current segment. |
ExerciseSegment.Builder |
setRepetitionsCount(repetitionsCount: Int) Sets the number of repetitions to the current segment. |
Public constructors
Builder
Added in API level 34
Builder(
startTime: Instant,
endTime: Instant,
segmentType: Int)
Public methods
build
Added in API level 34
fun build(): ExerciseSegment
Sets the number repetitions to the current segment. Returns ExerciseSegment
instance.
Return | |
---|---|
ExerciseSegment |
This value cannot be null . |
setRepetitionsCount
Added in API level 34
fun setRepetitionsCount(repetitionsCount: Int): ExerciseSegment.Builder
Sets the number of repetitions to the current segment. Returns builder instance with repetitions count set.
Parameters | |
---|---|
repetitionsCount |
Int: Value is 0 or greater |
Return | |
---|---|
ExerciseSegment.Builder |
This value cannot be null . |