# AggregationResultGroupedByPeriod

# AggregationResultGroupedByPeriod

Artifact:[androidx.health.connect:connect-client](https://developer.android.com/jetpack/androidx/releases/health-connect)  
[View Source](https://cs.android.com/search?q=file:androidx/health/connect/client/aggregate/AggregationResultGroupedByPeriod.kt+class:androidx.health.connect.client.aggregate.AggregationResultGroupedByPeriod)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

*** ** * ** ***

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

<br />

```
class AggregationResultGroupedByPeriod
```

<br />

*** ** * ** ***

Contains an aggregation result within a period slice.  

|                                                                                                         See also                                                                                                         |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [aggregateGroupByPeriod](https://developer.android.com/reference/kotlin/androidx/health/connect/client/HealthConnectClient#aggregateGroupByPeriod(androidx.health.connect.client.request.AggregateGroupByPeriodRequest)) |   |

## Summary

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/health/connect/client/aggregate/AggregationResultGroupedByPeriod#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/health/connect/client/aggregate/AggregationResultGroupedByPeriod#hashCode())`()`                                                                                            |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/health/connect/client/aggregate/AggregationResultGroupedByPeriod#toString())`()`                                                                                            |

|                                                     ### Public properties                                                      |
|--------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [LocalDateTime](https://developer.android.com/reference/java/time/LocalDateTime.html)                                          | [endTime](https://developer.android.com/reference/kotlin/androidx/health/connect/client/aggregate/AggregationResultGroupedByPeriod#endTime()) end time of the slice.                                                                                                                                                    |
| [AggregationResult](https://developer.android.com/reference/kotlin/androidx/health/connect/client/aggregate/AggregationResult) | [result](https://developer.android.com/reference/kotlin/androidx/health/connect/client/aggregate/AggregationResultGroupedByPeriod#result()) contains[AggregationResult](https://developer.android.com/reference/kotlin/androidx/health/connect/client/aggregate/AggregationResult)with metrics included in the request. |
| [LocalDateTime](https://developer.android.com/reference/java/time/LocalDateTime.html)                                          | [startTime](https://developer.android.com/reference/kotlin/androidx/health/connect/client/aggregate/AggregationResultGroupedByPeriod#startTime()) start time of the slice.                                                                                                                                              |

## Public functions

### equals

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

### hashCode

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

### toString

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

## Public properties

### endTime

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

```
val endTime: LocalDateTime
```

end time of the slice.  

### result

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

```
val result: AggregationResult
```

contains[AggregationResult](https://developer.android.com/reference/kotlin/androidx/health/connect/client/aggregate/AggregationResult)with metrics included in the request.  

### startTime

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

```
val startTime: LocalDateTime
```

start time of the slice.