# PassiveMonitoringCapabilities

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

*** ** * ** ***


```
public final class PassiveMonitoringCapabilities
```

<br />

*** ** * ** ***

Contains the capabilities supported by `https://developer.android.com/reference/androidx/health/services/client/PassiveMonitoringClient` on this device.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/health/services/client/data/PassiveMonitoringCapabilities#PassiveMonitoringCapabilities(kotlin.collections.Set,kotlin.collections.Set,kotlin.collections.Set,kotlin.collections.Set)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataType<@https://developer.android.com/reference/androidx/annotation/NonNull ?, @https://developer.android.com/reference/androidx/annotation/NonNull ?>> supportedDataTypesPassiveMonitoring, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataType<@https://developer.android.com/reference/androidx/annotation/NonNull ?, @https://developer.android.com/reference/androidx/annotation/NonNull ?>> supportedDataTypesPassiveGoals, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/HealthEvent.Type> supportedHealthEventTypes, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/UserActivityState> supportedUserActivityStates )` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataType<@https://developer.android.com/reference/androidx/annotation/NonNull ?, @https://developer.android.com/reference/androidx/annotation/NonNull ?>>` | `https://developer.android.com/reference/androidx/health/services/client/data/PassiveMonitoringCapabilities#getSupportedDataTypesPassiveGoals()()` Set of supported `https://developer.android.com/reference/androidx/health/services/client/data/DataType`s for goal callbacks on this device. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataType<@https://developer.android.com/reference/androidx/annotation/NonNull ?, @https://developer.android.com/reference/androidx/annotation/NonNull ?>>` | `https://developer.android.com/reference/androidx/health/services/client/data/PassiveMonitoringCapabilities#getSupportedDataTypesPassiveMonitoring()()` Set of supported `https://developer.android.com/reference/androidx/health/services/client/data/DataType`s for background capture on this device. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@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/PassiveMonitoringCapabilities#getSupportedHealthEventTypes()()` Set of supported `https://developer.android.com/reference/androidx/health/services/client/data/HealthEvent.Type`s on this device. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/UserActivityState>` | `https://developer.android.com/reference/androidx/health/services/client/data/PassiveMonitoringCapabilities#getSupportedUserActivityStates()()` Set of supported `https://developer.android.com/reference/androidx/health/services/client/data/UserActivityState`s on this device. |
| `@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/PassiveMonitoringCapabilities#toString()()` |

## Public constructors

### PassiveMonitoringCapabilities

```
public PassiveMonitoringCapabilities(
    @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>> supportedDataTypesPassiveMonitoring,
    @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>> supportedDataTypesPassiveGoals,
    @NonNull Set<@NonNull HealthEvent.Type> supportedHealthEventTypes,
    @NonNull Set<@NonNull UserActivityState> supportedUserActivityStates
)
```

## Public methods

### getSupportedDataTypesPassiveGoals

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

```
public final @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>> getSupportedDataTypesPassiveGoals()
```

Set of supported `https://developer.android.com/reference/androidx/health/services/client/data/DataType`s for goal callbacks on this device.

### getSupportedDataTypesPassiveMonitoring

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

```
public final @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>> getSupportedDataTypesPassiveMonitoring()
```

Set of supported `https://developer.android.com/reference/androidx/health/services/client/data/DataType`s for background capture on this device.

Some data types are only available during exercise (e.g. location) or for measurements.

### getSupportedHealthEventTypes

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

```
public final @NonNull Set<@NonNull HealthEvent.Type> getSupportedHealthEventTypes()
```

Set of supported `https://developer.android.com/reference/androidx/health/services/client/data/HealthEvent.Type`s on this device.

### getSupportedUserActivityStates

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

```
public final @NonNull Set<@NonNull UserActivityState> getSupportedUserActivityStates()
```

Set of supported `https://developer.android.com/reference/androidx/health/services/client/data/UserActivityState`s on this device.

### toString

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