Added in API level 35

Builder


class Builder
kotlin.Any
   ↳ android.health.connect.datatypes.PlannedExerciseBlock.Builder

Builder of PlannedExerciseBlock.

Summary

Public constructors
Builder(repetitions: Int)

Public methods
PlannedExerciseBlock.Builder

Adds a PlannedExerciseStep.

PlannedExerciseBlock

PlannedExerciseBlock.Builder

Clears the PlannedExerciseStep entries.

PlannedExerciseBlock.Builder

Sets the description.

PlannedExerciseBlock.Builder
setRepetitions(repetitions: Int)

Sets the number of repetitions.

PlannedExerciseBlock.Builder

Sets the PlannedExerciseStep entries.

Public constructors

Builder

Added in API level 35
Builder(repetitions: Int)
Parameters
repetitions Int: The number of times this block should be repeated by the user.

Public methods

addStep

Added in API level 35
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

Added in API level 35
fun build(): PlannedExerciseBlock
Return
PlannedExerciseBlock Object of PlannedExerciseBlock. This value cannot be null.

clearSteps

Added in API level 35
fun clearSteps(): PlannedExerciseBlock.Builder

Clears the PlannedExerciseStep entries.

Return
PlannedExerciseBlock.Builder This value cannot be null.

setDescription

Added in API level 35
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

Added in API level 35
fun setRepetitions(repetitions: Int): PlannedExerciseBlock.Builder

Sets the number of repetitions.

Return
PlannedExerciseBlock.Builder This value cannot be null.

setSteps

Added in API level 35
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.