# AggregateDataType

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

*** ** * ** ***


```
class AggregateDataType<T : Number, D : DataPoint<T>> : DataType<T, D>
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.health.services.client.data.DataType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType)\<T, D\> ||
|   | ↳ | [androidx.health.services.client.data.AggregateDataType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/AggregateDataType) |

*** ** * ** ***

`https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType` that represents aggregated data. This will map to `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint`s and `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint`s.

## Summary

| ### Public constructors |
|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-number/index.html, D : https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint<T>> https://developer.android.com/reference/kotlin/androidx/health/services/client/data/AggregateDataType#AggregateDataType(kotlin.String,androidx.health.services.client.data.DataType.TimeType,java.lang.Class)( name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, timeType: https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType.TimeType, valueClass: https://developer.android.com/reference/java/lang/Class.html<T> )` |

### Inherited functions

From [androidx.health.services.client.data.DataType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType) `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType#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/DataType#hashCode()()` `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType#toString()()`

### Inherited properties

From [androidx.health.services.client.data.DataType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType#name()`

Returns the name of this `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType`, e.g. `"Steps"`.
`https://developer.android.com/reference/java/lang/Class.html<T>` `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType#valueClass()`

Returns the underlying `https://developer.android.com/reference/java/lang/Class.html` of this `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType`.

## Public constructors

### AggregateDataType

```
<T : Number, D : DataPoint<T>> AggregateDataType(
    name: String,
    timeType: DataType.TimeType,
    valueClass: Class<T>
)
```