# ExerciseCompletionGoal.StepsGoal

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/ExerciseCompletionGoal.kt+class:androidx.health.connect.client.records.ExerciseCompletionGoal.StepsGoal) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

*** ** * ** ***


```
public final class ExerciseCompletionGoal.StepsGoal extends ExerciseCompletionGoal
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.health.connect.client.records.ExerciseCompletionGoal](https://developer.android.com/reference/androidx/health/connect/client/records/ExerciseCompletionGoal) ||
|   | ↳ | [androidx.health.connect.client.records.ExerciseCompletionGoal.StepsGoal](https://developer.android.com/reference/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal) |

*** ** * ** ***

An `https://developer.android.com/reference/androidx/health/connect/client/records/ExerciseCompletionGoal` that requires completing a specified number of steps.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal#StepsGoal(kotlin.Int)(int steps)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final int` | `https://developer.android.com/reference/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal#getSteps()()` |
| `int` | `https://developer.android.com/reference/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal#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/ExerciseCompletionGoal.StepsGoal#toString()()` |

## Public constructors

### StepsGoal

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

```
public StepsGoal(int steps)
```

## Public methods

### equals

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

### getSteps

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

```
public final int getSteps()
```

### hashCode

```
public int hashCode()
```

### toString

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