# AggregationType

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# AggregationType

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/health/connect/datatypes/AggregationType "View this page in Java")  

```
class AggregationType<T : Any!>
```

|---|------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                       ||
| ↳ | [android.health.connect.datatypes.AggregationType](https://developer.android.com/reference/kotlin/android/health/connect/datatypes/AggregationType#) |

Class to represent aggregation types in[Record](https://developer.android.com/reference/kotlin/android/health/connect/datatypes/Record)classes.

New objects of this class cannot be created.

Pre-created (defined in health[Record](https://developer.android.com/reference/kotlin/android/health/connect/datatypes/Record)types) objects of this class can be used to query and fetch aggregate results using aggregate APIs in[HealthConnectManager](https://developer.android.com/reference/kotlin/android/health/connect/HealthConnectManager.html#)

## Summary