# PassiveGoal

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

*** ** * ** ***

<br />

```
class PassiveGoal
```

<br />

*** ** * ** ***

Defines a passive goal that will be triggered when the specified condition is met which will repeat daily.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/PassiveGoal#PassiveGoal(androidx.health.services.client.data.DataTypeCondition)( dataTypeCondition: https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataTypeCondition<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-number/index.html, https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DeltaDataType<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-number/index.html, *>> )` Constructs a new `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/PassiveGoal` with the given `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/PassiveGoal#(androidx.health.services.client.data.DataTypeCondition)`. |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/PassiveGoal#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/PassiveGoal#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/PassiveGoal#toString()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataTypeCondition<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-number/index.html, https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DeltaDataType<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-number/index.html, *>>` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/PassiveGoal#dataTypeCondition()` `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataTypeCondition` which must be met for the passive goal to be triggered. |

## Public constructors

### PassiveGoal

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

```
PassiveGoal(
    dataTypeCondition: DataTypeCondition<Number, DeltaDataType<Number, *>>
)
```

Constructs a new `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/PassiveGoal` with the given `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/PassiveGoal#(androidx.health.services.client.data.DataTypeCondition)`. This goal will automatically repeat daily.

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

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

## Public properties

### dataTypeCondition

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

```
val dataTypeCondition: DataTypeCondition<Number, DeltaDataType<Number, *>>
```

`https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataTypeCondition` which must be met for the passive goal to be triggered.