Stay organized with collections
Save and categorize content based on your preferences.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-07-30 UTC.
[null,null,["Last updated 2025-07-30 UTC."],[],[],null,["# ExerciseCompletionGoal.StepsGoal\n================================\n\nArtifact: [androidx.health.connect:connect-client](/jetpack/androidx/releases/health-connect) \n[View Source](https://cs.android.com/search?q=file:androidx/health/connect/client/records/ExerciseCompletionGoal.kt+class:androidx.health.connect.client.records.ExerciseCompletionGoal.StepsGoal) \nAdded in [1.1.0](/jetpack/androidx/releases/health-connect#1.1.0)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal \"View this page in Java\")\n\n\n```\nclass ExerciseCompletionGoal.StepsGoal : ExerciseCompletionGoal\n```\n\n\u003cbr /\u003e\n\n|---|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||\n| ↳ | [androidx.health.connect.client.records.ExerciseCompletionGoal](/reference/kotlin/androidx/health/connect/client/records/ExerciseCompletionGoal) ||\n| | ↳ | [androidx.health.connect.client.records.ExerciseCompletionGoal.StepsGoal](/reference/kotlin/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal) |\n\n*** ** * ** ***\n\nAn [ExerciseCompletionGoal](/reference/kotlin/androidx/health/connect/client/records/ExerciseCompletionGoal) that requires completing a specified number of steps.\n\nSummary\n-------\n\n| ### Public constructors |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [StepsGoal](/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)`)` |\n\n| ### Public functions |\n|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](/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)`?)` |\n| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [hashCode](/reference/kotlin/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal#hashCode())`()` |\n| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [toString](/reference/kotlin/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal#toString())`()` |\n\n| ### Public properties |\n|-----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|\n| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [steps](/reference/kotlin/androidx/health/connect/client/records/ExerciseCompletionGoal.StepsGoal#steps()) |\n\nPublic constructors\n-------------------\n\n### StepsGoal\n\nAdded in [1.1.0](/jetpack/androidx/releases/health-connect#1.1.0) \n\n```\nStepsGoal(steps: Int)\n``` \n\nPublic functions\n----------------\n\n### equals\n\n```\nopen operator fun equals(other: Any?): Boolean\n``` \n\n### hashCode\n\n```\nopen fun hashCode(): Int\n``` \n\n### toString\n\n```\nopen fun toString(): String\n``` \n\nPublic properties\n-----------------\n\n### steps\n\nAdded in [1.1.0](/jetpack/androidx/releases/health-connect#1.1.0) \n\n```\nval steps: Int\n```"]]