# ExerciseTypeCapabilities

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

*** ** * ** ***


```
class ExerciseTypeCapabilities
```

<br />

*** ** * ** ***

Provides exercise specific capabilities data.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseTypeCapabilities#ExerciseTypeCapabilities(kotlin.collections.Set,kotlin.collections.Map,kotlin.collections.Map,kotlin.Boolean,kotlin.collections.Map,kotlin.collections.Map)( supportedDataTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType<*, *>>, supportedGoals: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/AggregateDataType<*, *>, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ComparisonType>>, supportedMilestones: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/AggregateDataType<*, *>, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ComparisonType>>, supportsAutoPauseAndResume: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, exerciseEventCapabilities: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventType<*>, https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventCapabilities>, supportedDebouncedGoals: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType<*, *>, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ComparisonType>> )` |

| ### Public functions |
|---|---|
| `C?` | `<C : https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventCapabilities> https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseTypeCapabilities#getExerciseEventCapabilityDetails(androidx.health.services.client.data.ExerciseEventType)( exerciseEventType: https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventType<C> )` Returns the `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventCapabilities` for a requested `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventType`. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseTypeCapabilities#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType<*, *>>` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseTypeCapabilities#supportedDataTypes()` Supported `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType`s for a given exercise. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType<*, *>, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ComparisonType>>` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseTypeCapabilities#supportedDebouncedGoals()` Map from supported debounced goals to a set of compatible `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ComparisonType`s. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventType<*>>` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseTypeCapabilities#supportedExerciseEvents()` Returns the set of supported `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventType`s on this device. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/AggregateDataType<*, *>, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ComparisonType>>` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseTypeCapabilities#supportedGoals()` Map from supported goals `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType`s to a set of compatible `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ComparisonType`s. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/AggregateDataType<*, *>, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ComparisonType>>` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseTypeCapabilities#supportedMilestones()` Map from supported milestone `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType`s to a set of compatible `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ComparisonType`s. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseTypeCapabilities#supportsAutoPauseAndResume()` Returns `true` if the given exercise supports auto pause and resume. |

## Public constructors

### ExerciseTypeCapabilities

```
ExerciseTypeCapabilities(
    supportedDataTypes: Set<DataType<*, *>>,
    supportedGoals: Map<AggregateDataType<*, *>, Set<ComparisonType>>,
    supportedMilestones: Map<AggregateDataType<*, *>, Set<ComparisonType>>,
    supportsAutoPauseAndResume: Boolean,
    exerciseEventCapabilities: Map<ExerciseEventType<*>, ExerciseEventCapabilities> = emptyMap(),
    supportedDebouncedGoals: Map<DataType<*, *>, Set<ComparisonType>> = emptyMap()
)
```

## Public functions

### getExerciseEventCapabilityDetails

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

```
fun <C : ExerciseEventCapabilities> getExerciseEventCapabilityDetails(
    exerciseEventType: ExerciseEventType<C>
): C?
```

Returns the `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventCapabilities` for a requested `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventType`.

### toString

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

## Public properties

### supportedDataTypes

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

```
val supportedDataTypes: Set<DataType<*, *>>
```

Supported `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType`s for a given exercise.

### supportedDebouncedGoals

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

```
val supportedDebouncedGoals: Map<DataType<*, *>, Set<ComparisonType>>
```

Map from supported debounced goals to a set of compatible `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ComparisonType`s.

### supportedExerciseEvents

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

```
val supportedExerciseEvents: Set<ExerciseEventType<*>>
```

Returns the set of supported `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventType`s on this device.

### supportedGoals

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

```
val supportedGoals: Map<AggregateDataType<*, *>, Set<ComparisonType>>
```

Map from supported goals `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType`s to a set of compatible `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ComparisonType`s.

### supportedMilestones

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

```
val supportedMilestones: Map<AggregateDataType<*, *>, Set<ComparisonType>>
```

Map from supported milestone `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType`s to a set of compatible `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ComparisonType`s.

### supportsAutoPauseAndResume

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

```
val supportsAutoPauseAndResume: Boolean
```

Returns `true` if the given exercise supports auto pause and resume.