PlannedExerciseStep.Builder
public
static
final
class
PlannedExerciseStep.Builder
extends Object
java.lang.Object | |
↳ | android.health.connect.datatypes.PlannedExerciseStep.Builder |
Builder of PlannedExerciseStep
.
Summary
Public constructors | |
---|---|
Builder(int exerciseType, int exerciseCategory, ExerciseCompletionGoal completionGoal)
|
Public methods | |
---|---|
PlannedExerciseStep.Builder
|
addPerformanceGoal(ExercisePerformanceGoal performanceGoal)
Adds a |
PlannedExerciseStep
|
build()
Returns |
PlannedExerciseStep.Builder
|
clearPerformanceGoals()
Clears |
PlannedExerciseStep.Builder
|
setCompletionGoal(ExerciseCompletionGoal completionGoal)
Sets the |
PlannedExerciseStep.Builder
|
setDescription(CharSequence description)
Sets the description. |
PlannedExerciseStep.Builder
|
setExerciseCategory(int category)
Sets the exercise category. |
PlannedExerciseStep.Builder
|
setExerciseType(int exerciseType)
Sets the exercise type. |
PlannedExerciseStep.Builder
|
setPerformanceGoals(List<ExercisePerformanceGoal> performanceGoals)
Sets |
Inherited methods | |
---|---|
Public constructors
Builder
public Builder (int exerciseType, int exerciseCategory, ExerciseCompletionGoal completionGoal)
Public methods
addPerformanceGoal
public PlannedExerciseStep.Builder addPerformanceGoal (ExercisePerformanceGoal performanceGoal)
Adds a ExercisePerformanceGoal
.
Parameters | |
---|---|
performanceGoal |
ExercisePerformanceGoal : This value cannot be null . |
Returns | |
---|---|
PlannedExerciseStep.Builder |
This value cannot be null . |
build
public PlannedExerciseStep build ()
Returns PlannedExerciseStep
instance.
Returns | |
---|---|
PlannedExerciseStep |
This value cannot be null . |
clearPerformanceGoals
public PlannedExerciseStep.Builder clearPerformanceGoals ()
Clears ExercisePerformanceGoal
entries.
Returns | |
---|---|
PlannedExerciseStep.Builder |
This value cannot be null . |
setCompletionGoal
public PlannedExerciseStep.Builder setCompletionGoal (ExerciseCompletionGoal completionGoal)
Sets the ExerciseCompletionGoal
.
Parameters | |
---|---|
completionGoal |
ExerciseCompletionGoal : This value cannot be null . |
Returns | |
---|---|
PlannedExerciseStep.Builder |
This value cannot be null . |
setDescription
public PlannedExerciseStep.Builder setDescription (CharSequence description)
Sets the description.
Parameters | |
---|---|
description |
CharSequence : This value may be null . |
Returns | |
---|---|
PlannedExerciseStep.Builder |
This value cannot be null . |
setExerciseCategory
public PlannedExerciseStep.Builder setExerciseCategory (int category)
Sets the exercise category.
Returns | |
---|---|
PlannedExerciseStep.Builder |
This value cannot be null . |
setExerciseType
public PlannedExerciseStep.Builder setExerciseType (int exerciseType)
Sets the exercise type.
Returns | |
---|---|
PlannedExerciseStep.Builder |
This value cannot be null . |
setPerformanceGoals
public PlannedExerciseStep.Builder setPerformanceGoals (List<ExercisePerformanceGoal> performanceGoals)
Sets ExercisePerformanceGoal
entries.
Parameters | |
---|---|
performanceGoals |
List : This value cannot be null . |
Returns | |
---|---|
PlannedExerciseStep.Builder |
This value cannot be null . |