# DeltaDataType

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.DeltaDataType) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

*** ** * ** ***


```
class DeltaDataType<T : Any, 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.DeltaDataType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DeltaDataType) |

*** ** * ** ***

`https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType` that represents a granular, non-aggregated point in time. This will map to `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/IntervalDataPoint`s and `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/SampleDataPoint`s.

## Summary

| ### Public constructors |
|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/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/DeltaDataType#DeltaDataType(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

### DeltaDataType

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