# HealthServicesClient

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

*** ** * ** ***


```
public interface HealthServicesClient
```

<br />

*** ** * ** ***

Client which provides a way to subscribe to the health data of a device, in the background or in the foreground.

## Summary

| ### Public methods |
|---|---|
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/ExerciseClient` | `https://developer.android.com/reference/androidx/health/services/client/HealthServicesClient#getExerciseClient()()` Returns a `https://developer.android.com/reference/androidx/health/services/client/ExerciseClient`. |
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/MeasureClient` | `https://developer.android.com/reference/androidx/health/services/client/HealthServicesClient#getMeasureClient()()` Returns a `https://developer.android.com/reference/androidx/health/services/client/MeasureClient`. |
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/PassiveMonitoringClient` | `https://developer.android.com/reference/androidx/health/services/client/HealthServicesClient#getPassiveMonitoringClient()()` Returns a `https://developer.android.com/reference/androidx/health/services/client/PassiveMonitoringClient`. |

## Public methods

### getExerciseClient

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

```
abstract @NonNull ExerciseClient getExerciseClient()
```

Returns a `https://developer.android.com/reference/androidx/health/services/client/ExerciseClient`.

### getMeasureClient

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

```
abstract @NonNull MeasureClient getMeasureClient()
```

Returns a `https://developer.android.com/reference/androidx/health/services/client/MeasureClient`.

### getPassiveMonitoringClient

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

```
abstract @NonNull PassiveMonitoringClient getPassiveMonitoringClient()
```

Returns a `https://developer.android.com/reference/androidx/health/services/client/PassiveMonitoringClient`.