Builder
class Builder
| kotlin.Any | |
| ↳ | android.health.connect.datatypes.PlannedExerciseBlock.Builder |
Builder of PlannedExerciseBlock.
Summary
| Public constructors | |
|---|---|
| Public methods | |
|---|---|
| PlannedExerciseBlock.Builder |
addStep(step: PlannedExerciseStep)Adds a |
| PlannedExerciseBlock |
build() |
| PlannedExerciseBlock.Builder |
Clears the |
| PlannedExerciseBlock.Builder |
setDescription(description: CharSequence?)Sets the description. |
| PlannedExerciseBlock.Builder |
setRepetitions(repetitions: Int)Sets the number of repetitions. |
| PlannedExerciseBlock.Builder |
setSteps(steps: MutableList<PlannedExerciseStep!>)Sets the |
Public constructors
Builder
Builder(repetitions: Int)
| Parameters | |
|---|---|
repetitions |
Int: The number of times this block should be repeated by the user. |
Public methods
addStep
fun addStep(step: PlannedExerciseStep): PlannedExerciseBlock.Builder
Adds a PlannedExerciseStep.
| Parameters | |
|---|---|
step |
PlannedExerciseStep: This value cannot be null. |
| Return | |
|---|---|
PlannedExerciseBlock.Builder |
This value cannot be null. |
build
fun build(): PlannedExerciseBlock
| Return | |
|---|---|
PlannedExerciseBlock |
Object of PlannedExerciseBlock. This value cannot be null. |
clearSteps
fun clearSteps(): PlannedExerciseBlock.Builder
Clears the PlannedExerciseStep entries.
| Return | |
|---|---|
PlannedExerciseBlock.Builder |
This value cannot be null. |
setDescription
fun setDescription(description: CharSequence?): PlannedExerciseBlock.Builder
Sets the description.
| Parameters | |
|---|---|
description |
CharSequence?: This value may be null. |
| Return | |
|---|---|
PlannedExerciseBlock.Builder |
This value cannot be null. |
setRepetitions
fun setRepetitions(repetitions: Int): PlannedExerciseBlock.Builder
Sets the number of repetitions.
| Return | |
|---|---|
PlannedExerciseBlock.Builder |
This value cannot be null. |
setSteps
fun setSteps(steps: MutableList<PlannedExerciseStep!>): PlannedExerciseBlock.Builder
Sets the PlannedExerciseStep entries.
| Parameters | |
|---|---|
steps |
MutableList<PlannedExerciseStep!>: This value cannot be null. |
| Return | |
|---|---|
PlannedExerciseBlock.Builder |
This value cannot be null. |