# ExerciseInfo

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/ExerciseInfo.kt+class:androidx.health.services.client.data.ExerciseInfo) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

*** ** * ** ***


```
public final class ExerciseInfo
```

<br />

*** ** * ** ***

High-level info about the exercise.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseInfo#ExerciseInfo(kotlin.Int,androidx.health.services.client.data.ExerciseType)( int exerciseTrackedStatus, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/ExerciseType exerciseType )` |

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseInfo#getExerciseTrackedStatus()()` Returns the `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseTrackedStatus`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/ExerciseType` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseInfo#getExerciseType()()` Returns the `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseType` of the active exercise, or `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseType#UNKNOWN()` if there is no active exercise. |

## Public constructors

### ExerciseInfo

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

```
public ExerciseInfo(
    int exerciseTrackedStatus,
    @NonNull ExerciseType exerciseType
)
```

## Public methods

### getExerciseTrackedStatus

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

```
public final int getExerciseTrackedStatus()
```

Returns the `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseTrackedStatus`.

### getExerciseType

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

```
public final @NonNull ExerciseType getExerciseType()
```

Returns the `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseType` of the active exercise, or `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseType#UNKNOWN()` if there is no active exercise.