# GolfExerciseTypeConfig

# GolfExerciseTypeConfig

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

<br />

```
class GolfExerciseTypeConfig : ExerciseTypeConfig
```

<br />

|---|---|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)                                                                                              |||
| ↳ | [androidx.health.services.client.data.ExerciseTypeConfig](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseTypeConfig)            ||
|   | ↳ | [androidx.health.services.client.data.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. Developers are not expected to receive or consume it from health-services.

## Summary

|                                                                                                                                                                                    ### Nested types                                                                                                                                                                                    |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[GolfExerciseTypeConfig.GolfShotTrackingPlaceInfo](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/GolfExerciseTypeConfig.GolfShotTrackingPlaceInfo) The tracking information for a golf shot used in[GolfExerciseTypeConfig](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/GolfExerciseTypeConfig). |

|                                                                                                                                                                                                                             ### Public constructors                                                                                                                                                                                                                              |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [GolfExerciseTypeConfig](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/GolfExerciseTypeConfig#GolfExerciseTypeConfig(androidx.health.services.client.data.GolfExerciseTypeConfig.GolfShotTrackingPlaceInfo))`(` ` golfShotTrackingPlaceInfo: `[GolfExerciseTypeConfig.GolfShotTrackingPlaceInfo](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/GolfExerciseTypeConfig.GolfShotTrackingPlaceInfo) `)` |

|                                   ### Public functions                                   |
|------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [toString](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/GolfExerciseTypeConfig#toString())`()` |

|                                                                                  ### Public properties                                                                                   |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [GolfExerciseTypeConfig.GolfShotTrackingPlaceInfo](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/GolfExerciseTypeConfig.GolfShotTrackingPlaceInfo) | [golfShotTrackingPlaceInfo](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/GolfExerciseTypeConfig#golfShotTrackingPlaceInfo()) location where user takes[DataType.GOLF_SHOT_COUNT](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType#GOLF_SHOT_COUNT())during[ExerciseType.GOLF](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseType#GOLF())activity |

## Public constructors

### GolfExerciseTypeConfig

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

```
GolfExerciseTypeConfig(
    golfShotTrackingPlaceInfo: GolfExerciseTypeConfig.GolfShotTrackingPlaceInfo = GOLF_SHOT_TRACKING_PLACE_INFO_UNSPECIFIED
)
```  

## Public functions

### toString

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

## Public properties

### golfShotTrackingPlaceInfo

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

```
val golfShotTrackingPlaceInfo: GolfExerciseTypeConfig.GolfShotTrackingPlaceInfo
```

location where user takes[DataType.GOLF_SHOT_COUNT](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType#GOLF_SHOT_COUNT())during[ExerciseType.GOLF](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseType#GOLF())activity