# ExerciseEventType

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/ExerciseEventType.kt+class:androidx.health.services.client.data.ExerciseEventType) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health#1.1.0)

*** ** * ** ***


```
public final class ExerciseEventType<C extends ExerciseEventCapabilities>
```

<br />

*** ** * ** ***

Type of exercise event which specifies the representations of `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseEventCapabilities` for the event.

Note: the exercise event type defines only the representation and data format of event types. It does not act as a form of delivery for the event data.

## Summary

| ### Public fields |
|---|---|
| `static final @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/GolfShotEventCapabilities>` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseEventType#GOLF_SHOT_EVENT()` An exercise event that can be used to notify the user a golf shot is detected by the device. |
| `static final @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/ExerciseEventCapabilities>` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseEventType#UNKNOWN()` An unknown event type. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseEventType#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `int` | `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseEventType#hashCode()()` |
| `@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/ExerciseEventType#toString()()` |

## Public fields

### GOLF_SHOT_EVENT

```
public static final @NonNull ExerciseEventType<@NonNull GolfShotEventCapabilities> GOLF_SHOT_EVENT
```

An exercise event that can be used to notify the user a golf shot is detected by the device.

### UNKNOWN

```
public static final @NonNull ExerciseEventType<@NonNull ExerciseEventCapabilities> UNKNOWN
```

An unknown event type. This should not be received.

## Public methods

### equals

```
public boolean equals(Object other)
```

### hashCode

```
public int hashCode()
```

### toString

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