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