# HealthEvent.Type

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

*** ** * ** ***

<br />

```
public final class HealthEvent.Type
```

<br />

*** ** * ** ***

Health event types.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/HealthEvent.Type` | `https://developer.android.com/reference/androidx/health/services/client/data/HealthEvent.Type#FALL_DETECTED()` Health Event signifying the device detected that the user fell. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/HealthEvent.Type` | `https://developer.android.com/reference/androidx/health/services/client/data/HealthEvent.Type#UNKNOWN()` The Health Event is unknown, or is represented by a value too new for this library version to parse. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/health/services/client/data/HealthEvent.Type#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final int` | `https://developer.android.com/reference/androidx/health/services/client/data/HealthEvent.Type#getId()()` Returns a unique identifier for the `https://developer.android.com/reference/androidx/health/services/client/data/HealthEvent.Type`, as an `int`. |
| `final @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/HealthEvent.Type#getName()()` Returns a human readable name to represent this `https://developer.android.com/reference/androidx/health/services/client/data/HealthEvent.Type`. |
| `int` | `https://developer.android.com/reference/androidx/health/services/client/data/HealthEvent.Type#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/HealthEvent.Type#toString()()` |

## Public fields

### FALL_DETECTED

```
public static final @NonNull HealthEvent.Type FALL_DETECTED
```

Health Event signifying the device detected that the user fell.

### UNKNOWN

```
public static final @NonNull HealthEvent.Type UNKNOWN
```

The Health Event is unknown, or is represented by a value too new for this library version to parse.

## Public methods

### equals

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

### getId

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

```
public final int getId()
```

Returns a unique identifier for the `https://developer.android.com/reference/androidx/health/services/client/data/HealthEvent.Type`, as an `int`.

### getName

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

```
public final @NonNull String getName()
```

Returns a human readable name to represent this `https://developer.android.com/reference/androidx/health/services/client/data/HealthEvent.Type`.

### hashCode

```
public int hashCode()
```

### toString

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