Stay organized with collections
Save and categorize content based on your preferences.
abstract class ExerciseTypeConfig
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
using the constructor of available subclasses, depending on their needs. Currently available types are: GolfExerciseTypeConfig
.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# ExerciseTypeConfig\n==================\n\nArtifact: [androidx.health:health-services-client](/jetpack/androidx/releases/health) \n[View Source](https://cs.android.com/search?q=file:androidx/health/services/client/data/ExerciseTypeConfig.kt+class:androidx.health.services.client.data.ExerciseTypeConfig) \nAdded in [1.0.0](/jetpack/androidx/releases/health#1.0.0)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/health/services/client/data/ExerciseTypeConfig \"View this page in Java\")\n\n\n```\nabstract class ExerciseTypeConfig\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[GolfExerciseTypeConfig](/reference/kotlin/androidx/health/services/client/data/GolfExerciseTypeConfig) \n\n|---------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GolfExerciseTypeConfig](/reference/kotlin/androidx/health/services/client/data/GolfExerciseTypeConfig) | An [ExerciseTypeConfig](/reference/kotlin/androidx/health/services/client/data/ExerciseTypeConfig) that is specifically for an [ExerciseType.GOLF](/reference/kotlin/androidx/health/services/client/data/ExerciseType#GOLF()) activity to configure the detection of [DataType.GOLF_SHOT_COUNT](/reference/kotlin/androidx/health/services/client/data/DataType#GOLF_SHOT_COUNT()), enabling higher accuracy of the detection. |\n\n*** ** * ** ***\n\nConfiguration 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](/reference/kotlin/androidx/health/services/client/data/ExerciseTypeConfig) using the constructor of available subclasses, depending on their needs. Currently available types are: [GolfExerciseTypeConfig](/reference/kotlin/androidx/health/services/client/data/GolfExerciseTypeConfig)."]]