# PassiveMonitoringCapabilities

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

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/androidx/health/services/client/data/PassiveMonitoringCapabilities "View this page in Java")


```
class PassiveMonitoringCapabilities
```

<br />

*** ** * ** ***

Contains the capabilities supported by [androidx.health.services.client.PassiveMonitoringClient](https://developer.android.com/reference/kotlin/androidx/health/services/client/PassiveMonitoringClient) on this device.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [PassiveMonitoringCapabilities](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/PassiveMonitoringCapabilities#PassiveMonitoringCapabilities(kotlin.collections.Set,kotlin.collections.Set,kotlin.collections.Set,kotlin.collections.Set))`(` ` supportedDataTypesPassiveMonitoring: `[Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[DataType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType)`<*, *>>,` ` supportedDataTypesPassiveGoals: `[Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[DataType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType)`<*, *>>,` ` supportedHealthEventTypes: `[Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[HealthEvent.Type](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/HealthEvent.Type)`>,` ` supportedUserActivityStates: `[Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[UserActivityState](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/UserActivityState)`>` `)` |

|                                   ### Public functions                                   |
|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [toString](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/PassiveMonitoringCapabilities#toString())`()` |

|                                                                                                  ### Public properties                                                                                                  |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[DataType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType)`<*, *>>`             | [supportedDataTypesPassiveGoals](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/PassiveMonitoringCapabilities#supportedDataTypesPassiveGoals()) Set of supported [DataType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType)s for goal callbacks on this device.               |
| [Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[DataType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType)`<*, *>>`             | [supportedDataTypesPassiveMonitoring](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/PassiveMonitoringCapabilities#supportedDataTypesPassiveMonitoring()) Set of supported [DataType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType)s for background capture on this device. |
| [Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[HealthEvent.Type](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/HealthEvent.Type)`>`   | [supportedHealthEventTypes](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/PassiveMonitoringCapabilities#supportedHealthEventTypes()) Set of supported [HealthEvent.Type](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/HealthEvent.Type)s on this device.                            |
| [Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[UserActivityState](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/UserActivityState)`>` | [supportedUserActivityStates](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/PassiveMonitoringCapabilities#supportedUserActivityStates()) Set of supported [UserActivityState](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/UserActivityState)s on this device.                      |

## Public constructors

### PassiveMonitoringCapabilities

```
PassiveMonitoringCapabilities(
    supportedDataTypesPassiveMonitoring: Set<DataType<*, *>>,
    supportedDataTypesPassiveGoals: Set<DataType<*, *>>,
    supportedHealthEventTypes: Set<HealthEvent.Type>,
    supportedUserActivityStates: Set<UserActivityState>
)
```  

## Public functions

### toString

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

## Public properties

### supportedDataTypesPassiveGoals

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

```
val supportedDataTypesPassiveGoals: Set<DataType<*, *>>
```

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

### supportedDataTypesPassiveMonitoring

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

```
val supportedDataTypesPassiveMonitoring: Set<DataType<*, *>>
```

Set of supported [DataType](https://developer.android.com/reference/kotlin/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.  

### supportedHealthEventTypes

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

```
val supportedHealthEventTypes: Set<HealthEvent.Type>
```

Set of supported [HealthEvent.Type](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/HealthEvent.Type)s on this device.  

### supportedUserActivityStates

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

```
val supportedUserActivityStates: Set<UserActivityState>
```

Set of supported [UserActivityState](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/UserActivityState)s on this device.