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

*** ** * ** ***


```
public final class GolfExerciseTypeConfig extends ExerciseTypeConfig
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.health.services.client.data.ExerciseTypeConfig](https://developer.android.com/reference/androidx/health/services/client/data/ExerciseTypeConfig) ||
|   | ↳ | [androidx.health.services.client.data.GolfExerciseTypeConfig](https://developer.android.com/reference/androidx/health/services/client/data/GolfExerciseTypeConfig) |

*** ** * ** ***

An `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseTypeConfig` that is specifically for an `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseType#GOLF()` activity to configure the detection of `https://developer.android.com/reference/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 |
|---|
| `public final class https://developer.android.com/reference/androidx/health/services/client/data/GolfExerciseTypeConfig.GolfShotTrackingPlaceInfo` The tracking information for a golf shot used in `https://developer.android.com/reference/androidx/health/services/client/data/GolfExerciseTypeConfig`. |

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

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/GolfExerciseTypeConfig.GolfShotTrackingPlaceInfo` | `https://developer.android.com/reference/androidx/health/services/client/data/GolfExerciseTypeConfig#getGolfShotTrackingPlaceInfo()()` location where user takes `https://developer.android.com/reference/androidx/health/services/client/data/DataType#GOLF_SHOT_COUNT()` during `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseType#GOLF()` activity |
| `@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/GolfExerciseTypeConfig#toString()()` |

## Public constructors

### GolfExerciseTypeConfig

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

```
public GolfExerciseTypeConfig(
    @NonNull GolfExerciseTypeConfig.GolfShotTrackingPlaceInfo golfShotTrackingPlaceInfo
)
```

## Public methods

### getGolfShotTrackingPlaceInfo

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

```
public final @NonNull GolfExerciseTypeConfig.GolfShotTrackingPlaceInfo getGolfShotTrackingPlaceInfo()
```

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

### toString

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