# ExerciseGoalType

# ExerciseGoalType

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/health/services/client/data/ExerciseGoalType "View this page in Java")

<br />

```
class ExerciseGoalType
```

<br />

*** ** * ** ***

Exercise goal types.

## Summary

|                                               ### Public companion functions                                                |
|-----------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ExerciseGoalType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseGoalType)`?` | [fromId](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseGoalType#fromId(kotlin.Int))`(id: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` |

|                                             ### Public companion properties                                              |
|--------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ExerciseGoalType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseGoalType) | [MILESTONE](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseGoalType#MILESTONE()) Goal type indicating this goal is for a repeating event and should remain until the calling app removes it. |
| [ExerciseGoalType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseGoalType) | [ONE_TIME_GOAL](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseGoalType#ONE_TIME_GOAL()) Goal type indicating this goal is for one event and should then be removed.                         |

|                                        ### 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/services/client/data/ExerciseGoalType#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/services/client/data/ExerciseGoalType#hashCode())`()`                                                                                            |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseGoalType#toString())`()`                                                                                            |

|                               ### Public properties                               |
|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)       | [id](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseGoalType#id())     |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [name](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseGoalType#name()) |

## Public companion functions

### fromId

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

```
fun fromId(id: Int): ExerciseGoalType?
```  

## Public companion properties

### MILESTONE

```
val MILESTONE: ExerciseGoalType
```

Goal type indicating this goal is for a repeating event and should remain until the calling app removes it.  

### ONE_TIME_GOAL

```
val ONE_TIME_GOAL: ExerciseGoalType
```

Goal type indicating this goal is for one event and should then be removed.  

## Public functions

### equals

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

### hashCode

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

### toString

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

## Public properties

### id

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

```
val id: Int
```  

### name

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

```
val name: String
```