PlannedExerciseBlock.Builder
public
static
final
class
PlannedExerciseBlock.Builder
extends Object
java.lang.Object | |
↳ | android.health.connect.datatypes.PlannedExerciseBlock.Builder |
Builder of PlannedExerciseBlock
.
Summary
Public constructors | |
---|---|
Builder(int repetitions)
|
Public methods | |
---|---|
PlannedExerciseBlock.Builder
|
addStep(PlannedExerciseStep step)
Adds a |
PlannedExerciseBlock
|
build()
|
PlannedExerciseBlock.Builder
|
clearSteps()
Clears the |
PlannedExerciseBlock.Builder
|
setDescription(CharSequence description)
Sets the description. |
PlannedExerciseBlock.Builder
|
setRepetitions(int repetitions)
Sets the number of repetitions. |
PlannedExerciseBlock.Builder
|
setSteps(List<PlannedExerciseStep> steps)
Sets the |
Inherited methods | |
---|---|
Public constructors
Builder
public Builder (int repetitions)
Parameters | |
---|---|
repetitions |
int : The number of times this block should be repeated by the user. |
Public methods
addStep
public PlannedExerciseBlock.Builder addStep (PlannedExerciseStep step)
Adds a PlannedExerciseStep
.
Parameters | |
---|---|
step |
PlannedExerciseStep : This value cannot be null . |
Returns | |
---|---|
PlannedExerciseBlock.Builder |
This value cannot be null . |
build
public PlannedExerciseBlock build ()
Returns | |
---|---|
PlannedExerciseBlock |
Object of PlannedExerciseBlock .
This value cannot be null . |
clearSteps
public PlannedExerciseBlock.Builder clearSteps ()
Clears the PlannedExerciseStep
entries.
Returns | |
---|---|
PlannedExerciseBlock.Builder |
This value cannot be null . |
setDescription
public PlannedExerciseBlock.Builder setDescription (CharSequence description)
Sets the description.
Parameters | |
---|---|
description |
CharSequence : This value may be null . |
Returns | |
---|---|
PlannedExerciseBlock.Builder |
This value cannot be null . |
setRepetitions
public PlannedExerciseBlock.Builder setRepetitions (int repetitions)
Sets the number of repetitions.
Parameters | |
---|---|
repetitions |
int |
Returns | |
---|---|
PlannedExerciseBlock.Builder |
This value cannot be null . |
setSteps
public PlannedExerciseBlock.Builder setSteps (List<PlannedExerciseStep> steps)
Sets the PlannedExerciseStep
entries.
Parameters | |
---|---|
steps |
List : This value cannot be null . |
Returns | |
---|---|
PlannedExerciseBlock.Builder |
This value cannot be null . |