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

*** ** * ** ***


```
class ExerciseEventType<C : ExerciseEventCapabilities>
```

<br />

*** ** * ** ***

Type of exercise event which specifies the representations of `https://developer.android.com/reference/kotlin/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 companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventType<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/GolfShotEventCapabilities>` | `https://developer.android.com/reference/kotlin/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. |
| `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventType<https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventCapabilities>` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventType#UNKNOWN()` An unknown event type. |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventType#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventType#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseEventType#toString()()` |

## Public companion properties

### GOLF_SHOT_EVENT

```
val GOLF_SHOT_EVENT: ExerciseEventType<GolfShotEventCapabilities>
```

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

### UNKNOWN

```
val UNKNOWN: ExerciseEventType<ExerciseEventCapabilities>
```

An unknown event type. This should not be received.

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

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