# DataPoint

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

*** ** * ** ***

<br />

```
abstract class DataPoint<T : Any>
```

<br />

Known direct subclasses [CumulativeDataPoint](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint), [IntervalDataPoint](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/IntervalDataPoint), [SampleDataPoint](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/SampleDataPoint), [StatisticalDataPoint](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint)

|---|---|
| `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()`. |
| `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/IntervalDataPoint` | Data point that includes just the delta from the previous data point for `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/IntervalDataPoint#dataType()`. |
| `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/SampleDataPoint` | Data point that represents a piece of data that was valid at a single point in time, for example heart rate or speed. |
| `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint` | Data point that represents statistics on `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/SampleDataPoint`s between `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#start()` and `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#end()`, though it is not required to request samples separately. |

*** ** * ** ***

Base class to represent individual pieces of data of type `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint#dataType()`.

## Summary

| ### Public properties |
|---|---|
| `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 properties

### dataType

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

```
open val dataType: DataType<T, DataPoint<T>>
```

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