# PassiveMonitoringUpdate

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

*** ** * ** ***


```
public final class PassiveMonitoringUpdate
```

<br />

*** ** * ** ***

Represents an update from Passive tracking.

Provides `https://developer.android.com/reference/androidx/health/services/client/data/DataPoint`s associated with the Passive tracking, in addition to data related to the user's `https://developer.android.com/reference/androidx/health/services/client/data/UserActivityState`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/health/services/client/data/PassiveMonitoringUpdate#PassiveMonitoringUpdate(androidx.health.services.client.data.DataPointContainer,kotlin.collections.List)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataPointContainer dataPoints, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/UserActivityInfo> userActivityInfoUpdates )` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataPointContainer` | `https://developer.android.com/reference/androidx/health/services/client/data/PassiveMonitoringUpdate#getDataPoints()()` List of `https://developer.android.com/reference/androidx/health/services/client/data/DataPoint`s from Passive tracking. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/UserActivityInfo>` | `https://developer.android.com/reference/androidx/health/services/client/data/PassiveMonitoringUpdate#getUserActivityInfoUpdates()()` The `https://developer.android.com/reference/androidx/health/services/client/data/UserActivityInfo` of the user from Passive tracking. |
| `@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/PassiveMonitoringUpdate#toString()()` |

## Public constructors

### PassiveMonitoringUpdate

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

```
public PassiveMonitoringUpdate(
    @NonNull DataPointContainer dataPoints,
    @NonNull List<@NonNull UserActivityInfo> userActivityInfoUpdates
)
```

## Public methods

### getDataPoints

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

```
public final @NonNull DataPointContainer getDataPoints()
```

List of `https://developer.android.com/reference/androidx/health/services/client/data/DataPoint`s from Passive tracking.

### getUserActivityInfoUpdates

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

```
public final @NonNull List<@NonNull UserActivityInfo> getUserActivityInfoUpdates()
```

The `https://developer.android.com/reference/androidx/health/services/client/data/UserActivityInfo` of the user from Passive tracking.

### toString

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