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 PlannedExerciseStep.

PlannedExerciseBlock build()
PlannedExerciseBlock.Builder clearSteps()

Clears the PlannedExerciseStep entries.

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 PlannedExerciseStep entries.

Inherited methods

Public constructors

Builder

Added in API level 35
Also in U Extensions 13
public Builder (int repetitions)

Parameters
repetitions int: The number of times this block should be repeated by the user.

Public methods

addStep

Added in API level 35
Also in U Extensions 13
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

Added in API level 35
Also in U Extensions 13
public PlannedExerciseBlock build ()

Returns
PlannedExerciseBlock Object of PlannedExerciseBlock. This value cannot be null.

clearSteps

Added in API level 35
Also in U Extensions 13
public PlannedExerciseBlock.Builder clearSteps ()

Clears the PlannedExerciseStep entries.

Returns
PlannedExerciseBlock.Builder This value cannot be null.

setDescription

Added in API level 35
Also in U Extensions 13
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

Added in API level 35
Also in U Extensions 13
public PlannedExerciseBlock.Builder setRepetitions (int repetitions)

Sets the number of repetitions.

Parameters
repetitions int

Returns
PlannedExerciseBlock.Builder This value cannot be null.

setSteps

Added in API level 35
Also in U Extensions 13
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.