Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [U Extensions 13](https://developer.android.com/sdkExtensions) Summary: [Nested Classes](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal#nestedclasses) \| [Inherited Methods](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal#inhmethods)

# ExerciseCompletionGoal

*** ** * ** ***

` public abstract class ExerciseCompletionGoal `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.health.connect.datatypes.ExerciseCompletionGoal |

Known direct subclasses [ExerciseCompletionGoal.ActiveCaloriesBurnedGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.ActiveCaloriesBurnedGoal), [ExerciseCompletionGoal.DistanceGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.DistanceGoal), [ExerciseCompletionGoal.DistanceWithVariableRestGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.DistanceWithVariableRestGoal), [ExerciseCompletionGoal.DurationGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.DurationGoal), [ExerciseCompletionGoal.RepetitionsGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.RepetitionsGoal), [ExerciseCompletionGoal.StepsGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.StepsGoal), [ExerciseCompletionGoal.TotalCaloriesBurnedGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.TotalCaloriesBurnedGoal), [ExerciseCompletionGoal.UnknownGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.UnknownGoal), [ExerciseCompletionGoal.UnspecifiedGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.UnspecifiedGoal) [ExerciseCompletionGoal.ActiveCaloriesBurnedGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.ActiveCaloriesBurnedGoal) An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that requires a specified number of active calories to be burned. [ExerciseCompletionGoal.DistanceGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.DistanceGoal) An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that requires covering a specified distance. [ExerciseCompletionGoal.DistanceWithVariableRestGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.DistanceWithVariableRestGoal) An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that requires covering a specified distance. [ExerciseCompletionGoal.DurationGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.DurationGoal) An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that requires a specified duration to elapse. [ExerciseCompletionGoal.RepetitionsGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.RepetitionsGoal) An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that requires a specified number of repetitions to be completed. [ExerciseCompletionGoal.StepsGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.StepsGoal) An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that requires completing a specified number of steps. [ExerciseCompletionGoal.TotalCaloriesBurnedGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.TotalCaloriesBurnedGoal) An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that requires a specified number of total calories to be burned. [ExerciseCompletionGoal.UnknownGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.UnknownGoal) An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that is unknown. [ExerciseCompletionGoal.UnspecifiedGoal](https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.UnspecifiedGoal) An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that has no specific target metric.   

*** ** * ** ***

A goal which should be met to complete a `https://developer.android.com/reference/android/health/connect/datatypes/PlannedExerciseStep`.

## Summary

| ### Nested classes ||
|---|---|
| ` class` | `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.ActiveCaloriesBurnedGoal` An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that requires a specified number of active calories to be burned. |
| ` class` | `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.DistanceGoal` An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that requires covering a specified distance. |
| ` class` | `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.DistanceWithVariableRestGoal` An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that requires covering a specified distance. |
| ` class` | `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.DurationGoal` An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that requires a specified duration to elapse. |
| ` class` | `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.RepetitionsGoal` An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that requires a specified number of repetitions to be completed. |
| ` class` | `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.StepsGoal` An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that requires completing a specified number of steps. |
| ` class` | `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.TotalCaloriesBurnedGoal` An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that requires a specified number of total calories to be burned. |
| ` class` | `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.UnknownGoal` An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that is unknown. |
| ` class` | `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal.UnspecifiedGoal` An `https://developer.android.com/reference/android/health/connect/datatypes/ExerciseCompletionGoal` that has no specific target metric. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.