# ExerciseTypeConfig

# ExerciseTypeConfig

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/ExerciseTypeConfig.kt+class:androidx.health.services.client.data.ExerciseTypeConfig)  
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/ExerciseTypeConfig "View this page in Java")

<br />

```
abstract class ExerciseTypeConfig
```

<br />

Known direct subclasses  
[GolfExerciseTypeConfig](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/GolfExerciseTypeConfig)  

|--------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [GolfExerciseTypeConfig](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/GolfExerciseTypeConfig) | An[ExerciseTypeConfig](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseTypeConfig)that is specifically for an[ExerciseType.GOLF](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseType#GOLF())activity to configure the detection of[DataType.GOLF_SHOT_COUNT](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType#GOLF_SHOT_COUNT()), enabling higher accuracy of the detection. |

*** ** * ** ***

Configuration attributes for a specific exercise type that may be modified after the exercise has started. This should not be instantiated outside the health.services.client.data library. Developers should create instances of[ExerciseTypeConfig](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseTypeConfig)using the constructor of available subclasses, depending on their needs. Currently available types are:[GolfExerciseTypeConfig](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/GolfExerciseTypeConfig).