# CumulativeDataPoint

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

*** ** * ** ***


```
class CumulativeDataPoint<T : Number> : DataPoint<T>
```

<br />

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

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint` containing a cumulative `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#total()` for the type `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,java.time.Instant,java.time.Instant)` between `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#start()` and `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#end()`. Unlike `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/IntervalDataPoint`, this is guaranteed to increase over time (assuming the same `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#start()` value.) For example, an `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/IntervalDataPoint` for `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType#STEPS()`

## Summary

| ### Public constructors |
|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-number/index.html> https://developer.android.com/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#CumulativeDataPoint(androidx.health.services.client.data.AggregateDataType,kotlin.Number,java.time.Instant,java.time.Instant)( dataType: https://developer.android.com/reference/kotlin/androidx/health/services/client/data/AggregateDataType<T, https://developer.android.com/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint<T>>, total: T, start: https://developer.android.com/reference/java/time/Instant.html, end: https://developer.android.com/reference/java/time/Instant.html )` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/java/time/Instant.html` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#end()` The end of the time period this `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint` represents. |
| `https://developer.android.com/reference/java/time/Instant.html` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#start()` The beginning of the time period this `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint` represents. |
| `T` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#total()` The accumulated value between `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,java.time.Instant,java.time.Instant)` and `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,java.time.Instant,java.time.Instant)`. |

### Inherited properties

From [androidx.health.services.client.data.DataPoint](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint) `open https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType<T, https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint<T>>` `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint#dataType()`

Type of data contained within this `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint`.

## Public constructors

### CumulativeDataPoint

```
<T : Number> CumulativeDataPoint(
    dataType: AggregateDataType<T, CumulativeDataPoint<T>>,
    total: T,
    start: Instant,
    end: Instant
)
```

## Public properties

### end

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

```
val end: Instant
```

The end of the time period this `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint` represents.

### start

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

```
val start: Instant
```

The beginning of the time period this `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint` represents.

### total

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

```
val total: T
```

The accumulated value between `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,java.time.Instant,java.time.Instant)` and `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,java.time.Instant,java.time.Instant)`.