# PlannedExerciseBlock

Artifact: [androidx.health.connect:connect-client](https://developer.android.com/jetpack/androidx/releases/health-connect) [View Source](https://cs.android.com/search?q=file:androidx/health/connect/client/records/PlannedExerciseBlock.kt+class:androidx.health.connect.client.records.PlannedExerciseBlock) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

*** ** * ** ***


```
public final class PlannedExerciseBlock
```

<br />

*** ** * ** ***

Represents a series of `https://developer.android.com/reference/androidx/health/connect/client/records/PlannedExerciseStep`s. Part of a `https://developer.android.com/reference/androidx/health/connect/client/records/PlannedExerciseSessionRecord`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/health/connect/client/records/PlannedExerciseBlock#PlannedExerciseBlock(kotlin.Int,kotlin.collections.List,kotlin.String)( int repetitions, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/records/PlannedExerciseStep> steps, https://developer.android.com/reference/java/lang/String.html description )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/health/connect/client/records/PlannedExerciseBlock#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/health/connect/client/records/PlannedExerciseBlock#getDescription()()` |
| `final int` | `https://developer.android.com/reference/androidx/health/connect/client/records/PlannedExerciseBlock#getRepetitions()()` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/records/PlannedExerciseStep>` | `https://developer.android.com/reference/androidx/health/connect/client/records/PlannedExerciseBlock#getSteps()()` |
| `int` | `https://developer.android.com/reference/androidx/health/connect/client/records/PlannedExerciseBlock#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/health/connect/client/records/PlannedExerciseBlock#toString()()` |

## Public constructors

### PlannedExerciseBlock

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public PlannedExerciseBlock(
    int repetitions,
    @NonNull List<@NonNull PlannedExerciseStep> steps,
    String description
)
```

## Public methods

### equals

```
public boolean equals(Object other)
```

### getDescription

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final String getDescription()
```

### getRepetitions

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final int getRepetitions()
```

### getSteps

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final @NonNull List<@NonNull PlannedExerciseStep> getSteps()
```

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```