Builder
class Builder
| kotlin.Any | |
| ↳ | android.health.connect.datatypes.PlannedExerciseStep.Builder |
Builder of PlannedExerciseStep.
Summary
| Public constructors | |
|---|---|
Builder(exerciseType: Int, exerciseCategory: Int, completionGoal: ExerciseCompletionGoal) |
|
| Public methods | |
|---|---|
| PlannedExerciseStep.Builder |
addPerformanceGoal(performanceGoal: ExercisePerformanceGoal)Adds a |
| PlannedExerciseStep |
build()Returns |
| PlannedExerciseStep.Builder |
Clears |
| PlannedExerciseStep.Builder |
setCompletionGoal(completionGoal: ExerciseCompletionGoal)Sets the |
| PlannedExerciseStep.Builder |
setDescription(description: CharSequence?)Sets the description. |
| PlannedExerciseStep.Builder |
setExerciseCategory(category: Int)Sets the exercise category. |
| PlannedExerciseStep.Builder |
setExerciseType(exerciseType: Int)Sets the exercise type. |
| PlannedExerciseStep.Builder |
setPerformanceGoals(performanceGoals: MutableList<ExercisePerformanceGoal!>)Sets |
Public constructors
Builder
Builder(
exerciseType: Int,
exerciseCategory: Int,
completionGoal: ExerciseCompletionGoal)
Public methods
addPerformanceGoal
fun addPerformanceGoal(performanceGoal: ExercisePerformanceGoal): PlannedExerciseStep.Builder
Adds a ExercisePerformanceGoal.
| Parameters | |
|---|---|
performanceGoal |
ExercisePerformanceGoal: This value cannot be null. |
| Return | |
|---|---|
PlannedExerciseStep.Builder |
This value cannot be null. |
build
fun build(): PlannedExerciseStep
Returns PlannedExerciseStep instance.
| Return | |
|---|---|
PlannedExerciseStep |
This value cannot be null. |
clearPerformanceGoals
fun clearPerformanceGoals(): PlannedExerciseStep.Builder
Clears ExercisePerformanceGoal entries.
| Return | |
|---|---|
PlannedExerciseStep.Builder |
This value cannot be null. |
setCompletionGoal
fun setCompletionGoal(completionGoal: ExerciseCompletionGoal): PlannedExerciseStep.Builder
Sets the ExerciseCompletionGoal.
| Parameters | |
|---|---|
completionGoal |
ExerciseCompletionGoal: This value cannot be null. |
| Return | |
|---|---|
PlannedExerciseStep.Builder |
This value cannot be null. |
setDescription
fun setDescription(description: CharSequence?): PlannedExerciseStep.Builder
Sets the description.
| Parameters | |
|---|---|
description |
CharSequence?: This value may be null. |
| Return | |
|---|---|
PlannedExerciseStep.Builder |
This value cannot be null. |
setExerciseCategory
fun setExerciseCategory(category: Int): PlannedExerciseStep.Builder
Sets the exercise category.
| Return | |
|---|---|
PlannedExerciseStep.Builder |
This value cannot be null. |
setExerciseType
fun setExerciseType(exerciseType: Int): PlannedExerciseStep.Builder
Sets the exercise type.
| Return | |
|---|---|
PlannedExerciseStep.Builder |
This value cannot be null. |
setPerformanceGoals
fun setPerformanceGoals(performanceGoals: MutableList<ExercisePerformanceGoal!>): PlannedExerciseStep.Builder
Sets ExercisePerformanceGoal entries.
| Parameters | |
|---|---|
performanceGoals |
MutableList<ExercisePerformanceGoal!>: This value cannot be null. |
| Return | |
|---|---|
PlannedExerciseStep.Builder |
This value cannot be null. |