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

```
public final 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/androidx/health/services/client/data/PassiveGoal#PassiveGoal(androidx.health.services.client.data.DataTypeCondition)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataTypeCondition<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Number.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Number.html, @https://developer.android.com/reference/androidx/annotation/NonNull ?>> dataTypeCondition )` Constructs a new `https://developer.android.com/reference/androidx/health/services/client/data/PassiveGoal` with the given `https://developer.android.com/reference/androidx/health/services/client/data/PassiveGoal#(androidx.health.services.client.data.DataTypeCondition)`. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/health/services/client/data/PassiveGoal#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataTypeCondition<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Number.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Number.html, @https://developer.android.com/reference/androidx/annotation/NonNull ?>>` | `https://developer.android.com/reference/androidx/health/services/client/data/PassiveGoal#getDataTypeCondition()()` `https://developer.android.com/reference/androidx/health/services/client/data/DataTypeCondition` which must be met for the passive goal to be triggered. |
| `int` | `https://developer.android.com/reference/androidx/health/services/client/data/PassiveGoal#hashCode()()` |
| `@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/PassiveGoal#toString()()` |

## Public constructors

### PassiveGoal

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

```
public PassiveGoal(
    @NonNull DataTypeCondition<@NonNull Number, @NonNull DeltaDataType<@NonNull Number, @NonNull ?>> dataTypeCondition
)
```

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

## Public methods

### equals

```
public boolean equals(Object other)
```

### getDataTypeCondition

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

```
public final @NonNull DataTypeCondition<@NonNull Number, @NonNull DeltaDataType<@NonNull Number, @NonNull ?>> getDataTypeCondition()
```

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

### hashCode

```
public int hashCode()
```

### toString

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