# 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)

*** ** * ** ***


```
public final class ExerciseTypeCapabilities
```

<br />

*** ** * ** ***

Provides exercise specific capabilities data.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseTypeCapabilities#ExerciseTypeCapabilities(kotlin.collections.Set,kotlin.collections.Map,kotlin.collections.Map,kotlin.Boolean,kotlin.collections.Map,kotlin.collections.Map)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataType<@https://developer.android.com/reference/androidx/annotation/NonNull ?, @https://developer.android.com/reference/androidx/annotation/NonNull ?>> supportedDataTypes, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull ?, @https://developer.android.com/reference/androidx/annotation/NonNull ?>, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/ComparisonType>> supportedGoals, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull ?, @https://developer.android.com/reference/androidx/annotation/NonNull ?>, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/ComparisonType>> supportedMilestones, boolean supportsAutoPauseAndResume, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/ExerciseEventType<@https://developer.android.com/reference/androidx/annotation/NonNull ?>, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/ExerciseEventCapabilities> exerciseEventCapabilities, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataType<@https://developer.android.com/reference/androidx/annotation/NonNull ?, @https://developer.android.com/reference/androidx/annotation/NonNull ?>, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/ComparisonType>> supportedDebouncedGoals )` |

| ### Public methods |
|---|---|
| `final C` | `<C extends https://developer.android.com/reference/androidx/health/services/client/data/ExerciseEventCapabilities> https://developer.android.com/reference/androidx/health/services/client/data/ExerciseTypeCapabilities#getExerciseEventCapabilityDetails(androidx.health.services.client.data.ExerciseEventType)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/ExerciseEventType<@https://developer.android.com/reference/androidx/annotation/NonNull C> exerciseEventType )` Returns the `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseEventCapabilities` for a requested `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseEventType`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataType<@https://developer.android.com/reference/androidx/annotation/NonNull ?, @https://developer.android.com/reference/androidx/annotation/NonNull ?>>` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseTypeCapabilities#getSupportedDataTypes()()` Supported `https://developer.android.com/reference/androidx/health/services/client/data/DataType`s for a given exercise. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataType<@https://developer.android.com/reference/androidx/annotation/NonNull ?, @https://developer.android.com/reference/androidx/annotation/NonNull ?>, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/ComparisonType>>` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseTypeCapabilities#getSupportedDebouncedGoals()()` Map from supported debounced goals to a set of compatible `https://developer.android.com/reference/androidx/health/services/client/data/ComparisonType`s. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/ExerciseEventType<@https://developer.android.com/reference/androidx/annotation/NonNull ?>>` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseTypeCapabilities#getSupportedExerciseEvents()()` Returns the set of supported `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseEventType`s on this device. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull ?, @https://developer.android.com/reference/androidx/annotation/NonNull ?>, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/ComparisonType>>` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseTypeCapabilities#getSupportedGoals()()` Map from supported goals `https://developer.android.com/reference/androidx/health/services/client/data/DataType`s to a set of compatible `https://developer.android.com/reference/androidx/health/services/client/data/ComparisonType`s. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull ?, @https://developer.android.com/reference/androidx/annotation/NonNull ?>, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/ComparisonType>>` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseTypeCapabilities#getSupportedMilestones()()` Map from supported milestone `https://developer.android.com/reference/androidx/health/services/client/data/DataType`s to a set of compatible `https://developer.android.com/reference/androidx/health/services/client/data/ComparisonType`s. |
| `final boolean` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseTypeCapabilities#getSupportsAutoPauseAndResume()()` Returns `true` if the given exercise supports auto pause and resume. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseTypeCapabilities#toString()()` |

## Public constructors

### ExerciseTypeCapabilities

```
public ExerciseTypeCapabilities(
    @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>> supportedDataTypes,
    @NonNull Map<@NonNull AggregateDataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>> supportedGoals,
    @NonNull Map<@NonNull AggregateDataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>> supportedMilestones,
    boolean supportsAutoPauseAndResume,
    @NonNull Map<@NonNull ExerciseEventType<@NonNull ?>, @NonNull ExerciseEventCapabilities> exerciseEventCapabilities,
    @NonNull Map<@NonNull DataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>> supportedDebouncedGoals
)
```

## Public methods

### getExerciseEventCapabilityDetails

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

```
public final C <C extends ExerciseEventCapabilities> getExerciseEventCapabilityDetails(
    @NonNull ExerciseEventType<@NonNull C> exerciseEventType
)
```

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

### getSupportedDataTypes

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

```
public final @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>> getSupportedDataTypes()
```

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

### getSupportedDebouncedGoals

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

```
public final @NonNull Map<@NonNull DataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>> getSupportedDebouncedGoals()
```

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

### getSupportedExerciseEvents

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

```
public final @NonNull Set<@NonNull ExerciseEventType<@NonNull ?>> getSupportedExerciseEvents()
```

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

### getSupportedGoals

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

```
public final @NonNull Map<@NonNull AggregateDataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>> getSupportedGoals()
```

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

### getSupportedMilestones

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

```
public final @NonNull Map<@NonNull AggregateDataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>> getSupportedMilestones()
```

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

### getSupportsAutoPauseAndResume

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

```
public final boolean getSupportsAutoPauseAndResume()
```

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

### toString

```
public @NonNull String toString()
```