# ExerciseCompletionGoal.StepsGoal

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal "View this page in Java")

<br />

```
class ExerciseCompletionGoal.StepsGoal : ExerciseCompletionGoal
```

<br />

|---|---|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)                                                                                                                      |||
| ↳ | [androidx.health.connect.client.records.ExerciseCompletionGoal](https://developer.android.com/reference/kotlin/androidx/health/connect/client/records/ExerciseCompletionGoal)                        ||
|   | ↳ | [androidx.health.connect.client.records.ExerciseCompletionGoal.StepsGoal](https://developer.android.com/reference/kotlin/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal) |

*** ** * ** ***

An[ExerciseCompletionGoal](https://developer.android.com/reference/kotlin/androidx/health/connect/client/records/ExerciseCompletionGoal)that requires completing a specified number of steps.

## Summary

|                                                                                                              ### Public constructors                                                                                                              |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [StepsGoal](https://developer.android.com/reference/kotlin/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal#StepsGoal(kotlin.Int))`(steps: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal#hashCode())`()`                                                                                            |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal#toString())`()`                                                                                            |

|                            ### Public properties                            |
|-----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [steps](https://developer.android.com/reference/kotlin/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal#steps()) |

## Public constructors

### StepsGoal

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

```
StepsGoal(steps: Int)
```  

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```  

### hashCode

```
open fun hashCode(): Int
```  

### toString

```
open fun toString(): String
```  

## Public properties

### steps

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

```
val steps: Int
```