# DataType

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

*** ** * ** ***

<br />

```
public abstract class DataType<T extends Object, D extends DataPoint<@NonNull T>>
```

<br />

Known direct subclasses [AggregateDataType](https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType), [DeltaDataType](https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType)

|---|---|
| `https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType` that represents aggregated data. |
| `https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType` that represents a granular, non-aggregated point in time. |

*** ** * ** ***

A data type is a representation of health data managed by Health Services.

A `https://developer.android.com/reference/androidx/health/services/client/data/DataType` specifies the type of the values inside of a `https://developer.android.com/reference/androidx/health/services/client/data/DataPoint`. Health Services defines data types for instantaneous observations (Samples / `https://developer.android.com/reference/androidx/health/services/client/data/SampleDataPoint`, e.g. heart rate) and data types for a change between readings (Intervals / `https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint`, e.g. distance).

Health services also allows specifying aggregated versions of many data types, which will allow the developer to get e.g. a running total of intervals (`https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint`) or statistics like min/max/average on samples (`https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint`).

Note: the data type defines only the representation and format of the data, and not how it's being collected, the sensor being used, or the parameters of the collection. As an example, `https://developer.android.com/reference/androidx/health/services/client/data/DataType#DISTANCE()` may come from GPS location if available, or steps if not available.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/health/services/client/data/DataType.TimeType` Whether the `https://developer.android.com/reference/androidx/health/services/client/data/DataType` corresponds to a measurement spanning an interval, or a sample at a single point in time. |

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/SampleDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#ABSOLUTE_ELEVATION()` Absolute elevation at a specific point in time expressed in meters. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#ABSOLUTE_ELEVATION_STATS()` Statistical information about the absolute elevation over the course of the active exercise expressed in meters. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#ACTIVE_EXERCISE_DURATION_TOTAL()` The total time the Exercise was `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseState#ACTIVE()` in seconds. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#CALORIES()` Number of calories burned (including basal rate and activity) since the last update. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#CALORIES_DAILY()` The total number of calories over a day (including both BMR and active calories), where the previous day ends and a new day begins at 12:00 AM local time. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#CALORIES_TOTAL()` Total number of calories burned (including basal rate and activity) since the start of the current active exercise. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#DECLINE_DISTANCE()` Distance traveled over declining ground between each reading expressed in meters. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#DECLINE_DISTANCE_TOTAL()` The total distance traveled over declining ground between each reading since the start of the active exercise expressed in meters. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#DECLINE_DURATION()` The amount of time the user spent traveling over declining ground since the last update, expressed in seconds. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#DECLINE_DURATION_TOTAL()` Total duration the user spent traveling over declining ground since the start of the active exercise, expressed in seconds. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#DISTANCE()` A distance delta between each reading expressed in meters. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#DISTANCE_DAILY()` The total distance over a day, where the previous day ends and a new day begins at 12:00 AM local time. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#DISTANCE_TOTAL()` Total distance since the start of the active exercise expressed in meters. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#ELEVATION_GAIN()` A measure of the gain in elevation since the last update expressed in meters. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#ELEVATION_GAIN_DAILY()` The total gain in elevation over a day expressed in meters in `double` format, where the previous day ends and a new day begins at 12:00 AM local time. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#ELEVATION_GAIN_TOTAL()` A measure of the total gain in elevation since the start of an active exercise expressed in meters. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#ELEVATION_LOSS()` A measure of the loss in elevation since the last update expressed in meters. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#ELEVATION_LOSS_TOTAL()` A measure of the total loss in elevation since the start of an active exercise expressed in meters. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#FLAT_GROUND_DISTANCE()` The distance traveled over flat since the last update expressed in meters. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#FLAT_GROUND_DISTANCE_TOTAL()` The total distance traveled over flat ground since the start of the active exercise expressed in meters. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#FLAT_GROUND_DURATION()` The amount of time the user spent traveling over flat ground since the last update, expressed in seconds. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#FLAT_GROUND_DURATION_TOTAL()` The total duration the user spent traveling over flat ground since the start of the active exercise, expressed in seconds. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#FLOORS()` Number of floors climbed since the last update. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#FLOORS_DAILY()` The total number floors climbed over a day, where the previous day ends and a new day begins at 12:00 AM local time. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#FLOORS_TOTAL()` Total number of floors climbed since the start of the active exercise. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#GOLF_SHOT_COUNT()` The number of golf shots taken since the last update, where a golf shot consists of swinging the club and hitting the ball. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#GOLF_SHOT_COUNT_TOTAL()` The total number of golf shots taken since the start of the current active exercise, where a golf shot consists swinging the club and hitting the ball. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/SampleDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#GROUND_CONTACT_TIME()` The amount of time during a single step that the runner's foot was in contact with the ground in milliseconds in `long` format. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#GROUND_CONTACT_TIME_STATS()` Statistics on the amount of time during a single step that the runner's foot was in contact with the ground in milliseconds in `long` format. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/SampleDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#HEART_RATE_BPM()` Current heart rate, in beats per minute. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#HEART_RATE_BPM_STATS()` Statistics on heart rate since the start of the current exercise, expressed in beats per minute. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#INCLINE_DISTANCE()` The distance traveled over inclining ground since the last update expressed in meters. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#INCLINE_DISTANCE_TOTAL()` The total distance traveled over inclining since the start of the active exercise expressed in meters. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#INCLINE_DURATION()` The amount of time the user spent traveling over inclining ground since the last update, expressed in seconds. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#INCLINE_DURATION_TOTAL()` Total amount of time the user spent traveling over inclining ground since the start of the active exercise, expressed in seconds. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/LocationData, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/SampleDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/LocationData>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#LOCATION()` Latitude, longitude and optionally, altitude and bearing at a specific point in time. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/SampleDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#PACE()` Pace at a specific point in time. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#PACE_STATS()` Statistics on pace since the start of the current exercise. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#REP_COUNT()` The number of repetitions of an exercise performed since the last update. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#REP_COUNT_TOTAL()` The number of repetitions of an exercise performed since the start of the current active exercise. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#RESTING_EXERCISE_DURATION()` The number of seconds the user has been resting during an exercise since the last update. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#RESTING_EXERCISE_DURATION_TOTAL()` The total number of seconds the user has been resting during the active exercise. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#RUNNING_STEPS()` Number of steps taken while running since the last update. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#RUNNING_STEPS_TOTAL()` Number of steps taken while running since the start of the current active exercise. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/SampleDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#SPEED()` Speed at a specific point in time, expressed as meters/second. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#SPEED_STATS()` Statistics on speed since the start of the active exercise, expressed in meters/second. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#STEPS()` Number of steps taken since the last update. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#STEPS_DAILY()` The total step count over a day, where the previous day ends and a new day begins at 12:00 AM local time. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/SampleDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#STEPS_PER_MINUTE()` Step rate in steps/minute at a given point in time. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#STEPS_PER_MINUTE_STATS()` Statistics on step rate in steps/minute since the beginning of the current active exercise. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#STEPS_TOTAL()` Total steps taken since the start of the active exercise. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/SampleDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#STRIDE_LENGTH()` Distance covered by a single step in meters in `double` format. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#STRIDE_LENGTH_STATS()` Statistics on distance covered by a single step in meters in `double` format. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#SWIMMING_LAP_COUNT()` Count of swimming laps since the last update. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#SWIMMING_LAP_COUNT_TOTAL()` Count of swimming laps since the start of the current active exercise. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#SWIMMING_STROKES()` Number of swimming strokes taken since the last update. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#SWIMMING_STROKES_TOTAL()` Total number of swimming strokes taken since the start of the current active exercise. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/SampleDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#VERTICAL_OSCILLATION()` Distance the center of mass moves up-and-down with each step in centimeters in `double` format. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#VERTICAL_OSCILLATION_STATS()` Statistic on distance the center of mass moves up-and-down with each step in centimeters in `double` format. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/SampleDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#VERTICAL_RATIO()` Vertical oscillation / stride length. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#VERTICAL_RATIO_STATS()` Statistics on vertical oscillation / stride length. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/SampleDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#VO2_MAX()` Maximum rate of oxygen consumption measured at a specific point in time. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Double.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#VO2_MAX_STATS()` Statistics on maximum rate of oxygen consumption measured since the start of an exercise. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DeltaDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/IntervalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#WALKING_STEPS()` Number of steps taken while walking since the last update. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/CumulativeDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#WALKING_STEPS_TOTAL()` Total number of steps taken while walking since the start of the current active exercise. |

| ### Public constructors |
|---|
| `<T extends https://developer.android.com/reference/java/lang/Object.html, D extends https://developer.android.com/reference/androidx/health/services/client/data/DataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull T>> https://developer.android.com/reference/androidx/health/services/client/data/DataType#DataType(kotlin.String,androidx.health.services.client.data.DataType.TimeType,java.lang.Class,kotlin.Boolean)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html name, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataType.TimeType timeType, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Class.html<@https://developer.android.com/reference/androidx/annotation/NonNull T> valueClass, boolean isAggregate )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#getName()()` Returns the name of this `https://developer.android.com/reference/androidx/health/services/client/data/DataType`, e.g. `"Steps"`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Class.html<@https://developer.android.com/reference/androidx/annotation/NonNull T>` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#getValueClass()()` Returns the underlying `https://developer.android.com/reference/java/lang/Class.html` of this `https://developer.android.com/reference/androidx/health/services/client/data/DataType`. |
| `int` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType#toString()()` |

## Public fields

### ABSOLUTE_ELEVATION

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull SampleDataPoint<@NonNull Double>> ABSOLUTE_ELEVATION
```

Absolute elevation at a specific point in time expressed in meters.

### ABSOLUTE_ELEVATION_STATS

```
public static final @NonNull AggregateDataType<@NonNull Double, @NonNull StatisticalDataPoint<@NonNull Double>> ABSOLUTE_ELEVATION_STATS
```

Statistical information about the absolute elevation over the course of the active exercise expressed in meters.

### ACTIVE_EXERCISE_DURATION_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Long, @NonNull CumulativeDataPoint<@NonNull Long>> ACTIVE_EXERCISE_DURATION_TOTAL
```

The total time the Exercise was `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseState#ACTIVE()` in seconds.

***Note* : this `https://developer.android.com/reference/androidx/health/services/client/data/DataType` is only intended to be used in conjunction with exercise goals. `https://developer.android.com/reference/androidx/health/services/client/data/DataPoint`s will not be delivered for this `https://developer.android.com/reference/androidx/health/services/client/data/DataType`. If you want to query the active duration, you should use ExerciseUpdate.activeDuration which is available in every `https://developer.android.com/reference/androidx/health/services/client/data/ExerciseUpdate`.**

### CALORIES

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull IntervalDataPoint<@NonNull Double>> CALORIES
```

Number of calories burned (including basal rate and activity) since the last update.

### CALORIES_DAILY

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull IntervalDataPoint<@NonNull Double>> CALORIES_DAILY
```

The total number of calories over a day (including both BMR and active calories), where the previous day ends and a new day begins at 12:00 AM local time. Each `https://developer.android.com/reference/androidx/health/services/client/data/DataPoint` of this type will cover the interval from the start of day to now. In the event of time-zone shifts, the interval might be greater than 24hrs.

### CALORIES_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Double, @NonNull CumulativeDataPoint<@NonNull Double>> CALORIES_TOTAL
```

Total number of calories burned (including basal rate and activity) since the start of the current active exercise.

### DECLINE_DISTANCE

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull IntervalDataPoint<@NonNull Double>> DECLINE_DISTANCE
```

Distance traveled over declining ground between each reading expressed in meters.

### DECLINE_DISTANCE_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Double, @NonNull CumulativeDataPoint<@NonNull Double>> DECLINE_DISTANCE_TOTAL
```

The total distance traveled over declining ground between each reading since the start of the active exercise expressed in meters.

### DECLINE_DURATION

```
public static final @NonNull DeltaDataType<@NonNull Long, @NonNull IntervalDataPoint<@NonNull Long>> DECLINE_DURATION
```

The amount of time the user spent traveling over declining ground since the last update, expressed in seconds.

### DECLINE_DURATION_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Long, @NonNull CumulativeDataPoint<@NonNull Long>> DECLINE_DURATION_TOTAL
```

Total duration the user spent traveling over declining ground since the start of the active exercise, expressed in seconds.

### DISTANCE

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull IntervalDataPoint<@NonNull Double>> DISTANCE
```

A distance delta between each reading expressed in meters.

### DISTANCE_DAILY

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull IntervalDataPoint<@NonNull Double>> DISTANCE_DAILY
```

The total distance over a day, where the previous day ends and a new day begins at 12:00 AM local time. Each DataPoint of this type will cover the interval from the start of day to now. In the event of time-zone shifts, the interval may be greater than 24hrs.

### DISTANCE_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Double, @NonNull CumulativeDataPoint<@NonNull Double>> DISTANCE_TOTAL
```

Total distance since the start of the active exercise expressed in meters.

### ELEVATION_GAIN

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull IntervalDataPoint<@NonNull Double>> ELEVATION_GAIN
```

A measure of the gain in elevation since the last update expressed in meters. Elevation losses are not counted in this metric (so it will only be positive or 0).

### ELEVATION_GAIN_DAILY

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull IntervalDataPoint<@NonNull Double>> ELEVATION_GAIN_DAILY
```

The total gain in elevation over a day expressed in meters in `double` format, where the previous day ends and a new day begins at 12:00 AM local time. Elevation losses are not counted in this metric (so it will only be positive or 0). Each DataPoint of this type will cover the interval from the start of day to now. In the event of time-zone shifts, the interval might be greater than 24hrs.

### ELEVATION_GAIN_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Double, @NonNull CumulativeDataPoint<@NonNull Double>> ELEVATION_GAIN_TOTAL
```

A measure of the total gain in elevation since the start of an active exercise expressed in meters. Elevation losses are not counted in this metric (so it will only be positive or 0).

### ELEVATION_LOSS

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull IntervalDataPoint<@NonNull Double>> ELEVATION_LOSS
```

A measure of the loss in elevation since the last update expressed in meters. Elevation gains are not counted in this metric (so it will only be positive or 0).

### ELEVATION_LOSS_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Double, @NonNull CumulativeDataPoint<@NonNull Double>> ELEVATION_LOSS_TOTAL
```

A measure of the total loss in elevation since the start of an active exercise expressed in meters. Elevation gains are not counted in this metric (so it will only be positive or 0).

### FLAT_GROUND_DISTANCE

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull IntervalDataPoint<@NonNull Double>> FLAT_GROUND_DISTANCE
```

The distance traveled over flat since the last update expressed in meters.

### FLAT_GROUND_DISTANCE_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Double, @NonNull CumulativeDataPoint<@NonNull Double>> FLAT_GROUND_DISTANCE_TOTAL
```

The total distance traveled over flat ground since the start of the active exercise expressed in meters.

### FLAT_GROUND_DURATION

```
public static final @NonNull DeltaDataType<@NonNull Long, @NonNull IntervalDataPoint<@NonNull Long>> FLAT_GROUND_DURATION
```

The amount of time the user spent traveling over flat ground since the last update, expressed in seconds.

### FLAT_GROUND_DURATION_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Long, @NonNull CumulativeDataPoint<@NonNull Long>> FLAT_GROUND_DURATION_TOTAL
```

The total duration the user spent traveling over flat ground since the start of the active exercise, expressed in seconds.

### FLOORS

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull IntervalDataPoint<@NonNull Double>> FLOORS
```

Number of floors climbed since the last update. Note that partial floors are supported, so this is represented as a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html`.

### FLOORS_DAILY

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull IntervalDataPoint<@NonNull Double>> FLOORS_DAILY
```

The total number floors climbed over a day, where the previous day ends and a new day begins at 12:00 AM local time. Each DataPoint of this type will cover the interval from the start of day to now. In the event of time-zone shifts, the interval may be greater than 24hrs.

### FLOORS_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Double, @NonNull CumulativeDataPoint<@NonNull Double>> FLOORS_TOTAL
```

Total number of floors climbed since the start of the active exercise. Note that partial floors are supported, so this is represented as a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html`.

### GOLF_SHOT_COUNT

```
public static final @NonNull DeltaDataType<@NonNull Long, @NonNull IntervalDataPoint<@NonNull Long>> GOLF_SHOT_COUNT
```

The number of golf shots taken since the last update, where a golf shot consists of swinging the club and hitting the ball.

### GOLF_SHOT_COUNT_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Long, @NonNull CumulativeDataPoint<@NonNull Long>> GOLF_SHOT_COUNT_TOTAL
```

The total number of golf shots taken since the start of the current active exercise, where a golf shot consists swinging the club and hitting the ball.

### GROUND_CONTACT_TIME

```
public static final @NonNull DeltaDataType<@NonNull Long, @NonNull SampleDataPoint<@NonNull Long>> GROUND_CONTACT_TIME
```

The amount of time during a single step that the runner's foot was in contact with the ground in milliseconds in `long` format.

### GROUND_CONTACT_TIME_STATS

```
public static final @NonNull AggregateDataType<@NonNull Long, @NonNull StatisticalDataPoint<@NonNull Long>> GROUND_CONTACT_TIME_STATS
```

Statistics on the amount of time during a single step that the runner's foot was in contact with the ground in milliseconds in `long` format.

### HEART_RATE_BPM

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull SampleDataPoint<@NonNull Double>> HEART_RATE_BPM
```

Current heart rate, in beats per minute.

Accuracy for a `https://developer.android.com/reference/androidx/health/services/client/data/DataPoint` of type `https://developer.android.com/reference/androidx/health/services/client/data/DataType#HEART_RATE_BPM()` is represented by `https://developer.android.com/reference/androidx/health/services/client/data/HeartRateAccuracy`.

### HEART_RATE_BPM_STATS

```
public static final @NonNull AggregateDataType<@NonNull Double, @NonNull StatisticalDataPoint<@NonNull Double>> HEART_RATE_BPM_STATS
```

Statistics on heart rate since the start of the current exercise, expressed in beats per minute.

### INCLINE_DISTANCE

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull IntervalDataPoint<@NonNull Double>> INCLINE_DISTANCE
```

The distance traveled over inclining ground since the last update expressed in meters.

### INCLINE_DISTANCE_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Double, @NonNull CumulativeDataPoint<@NonNull Double>> INCLINE_DISTANCE_TOTAL
```

The total distance traveled over inclining since the start of the active exercise expressed in meters.

### INCLINE_DURATION

```
public static final @NonNull DeltaDataType<@NonNull Long, @NonNull IntervalDataPoint<@NonNull Long>> INCLINE_DURATION
```

The amount of time the user spent traveling over inclining ground since the last update, expressed in seconds.

### INCLINE_DURATION_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Long, @NonNull CumulativeDataPoint<@NonNull Long>> INCLINE_DURATION_TOTAL
```

Total amount of time the user spent traveling over inclining ground since the start of the active exercise, expressed in seconds.

### LOCATION

```
public static final @NonNull DeltaDataType<@NonNull LocationData, @NonNull SampleDataPoint<@NonNull LocationData>> LOCATION
```

Latitude, longitude and optionally, altitude and bearing at a specific point in time.

Accuracy for a `https://developer.android.com/reference/androidx/health/services/client/data/DataPoint` of type `https://developer.android.com/reference/androidx/health/services/client/data/DataType#LOCATION()` is represented by `https://developer.android.com/reference/androidx/health/services/client/data/LocationAccuracy`.

### PACE

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull SampleDataPoint<@NonNull Double>> PACE
```

Pace at a specific point in time. Will be 0 if the user stops moving, otherwise the value will be in milliseconds/kilometer.

### PACE_STATS

```
public static final @NonNull AggregateDataType<@NonNull Double, @NonNull StatisticalDataPoint<@NonNull Double>> PACE_STATS
```

Statistics on pace since the start of the current exercise. A value of 0 indicates the user stopped moving, otherwise the value will be in milliseconds/kilometer.

### REP_COUNT

```
public static final @NonNull DeltaDataType<@NonNull Long, @NonNull IntervalDataPoint<@NonNull Long>> REP_COUNT
```

The number of repetitions of an exercise performed since the last update.

### REP_COUNT_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Long, @NonNull CumulativeDataPoint<@NonNull Long>> REP_COUNT_TOTAL
```

The number of repetitions of an exercise performed since the start of the current active exercise.

### RESTING_EXERCISE_DURATION

```
public static final @NonNull DeltaDataType<@NonNull Long, @NonNull IntervalDataPoint<@NonNull Long>> RESTING_EXERCISE_DURATION
```

The number of seconds the user has been resting during an exercise since the last update.

### RESTING_EXERCISE_DURATION_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Long, @NonNull CumulativeDataPoint<@NonNull Long>> RESTING_EXERCISE_DURATION_TOTAL
```

The total number of seconds the user has been resting during the active exercise.

### RUNNING_STEPS

```
public static final @NonNull DeltaDataType<@NonNull Long, @NonNull IntervalDataPoint<@NonNull Long>> RUNNING_STEPS
```

Number of steps taken while running since the last update.

### RUNNING_STEPS_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Long, @NonNull CumulativeDataPoint<@NonNull Long>> RUNNING_STEPS_TOTAL
```

Number of steps taken while running since the start of the current active exercise.

### SPEED

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull SampleDataPoint<@NonNull Double>> SPEED
```

Speed at a specific point in time, expressed as meters/second.

### SPEED_STATS

```
public static final @NonNull AggregateDataType<@NonNull Double, @NonNull StatisticalDataPoint<@NonNull Double>> SPEED_STATS
```

Statistics on speed since the start of the active exercise, expressed in meters/second.

### STEPS

```
public static final @NonNull DeltaDataType<@NonNull Long, @NonNull IntervalDataPoint<@NonNull Long>> STEPS
```

Number of steps taken since the last update.

### STEPS_DAILY

```
public static final @NonNull DeltaDataType<@NonNull Long, @NonNull IntervalDataPoint<@NonNull Long>> STEPS_DAILY
```

The total step count over a day, where the previous day ends and a new day begins at 12:00 AM local time. Each `https://developer.android.com/reference/androidx/health/services/client/data/DataPoint` of this type will cover the interval from the start of day to now. In the event of time-zone shifts, the interval may be greater than 24hrs.

### STEPS_PER_MINUTE

```
public static final @NonNull DeltaDataType<@NonNull Long, @NonNull SampleDataPoint<@NonNull Long>> STEPS_PER_MINUTE
```

Step rate in steps/minute at a given point in time.

### STEPS_PER_MINUTE_STATS

```
public static final @NonNull AggregateDataType<@NonNull Long, @NonNull StatisticalDataPoint<@NonNull Long>> STEPS_PER_MINUTE_STATS
```

Statistics on step rate in steps/minute since the beginning of the current active exercise.

### STEPS_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Long, @NonNull CumulativeDataPoint<@NonNull Long>> STEPS_TOTAL
```

Total steps taken since the start of the active exercise.

### STRIDE_LENGTH

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull SampleDataPoint<@NonNull Double>> STRIDE_LENGTH
```

Distance covered by a single step in meters in `double` format.

### STRIDE_LENGTH_STATS

```
public static final @NonNull AggregateDataType<@NonNull Double, @NonNull StatisticalDataPoint<@NonNull Double>> STRIDE_LENGTH_STATS
```

Statistics on distance covered by a single step in meters in `double` format.

### SWIMMING_LAP_COUNT

```
public static final @NonNull DeltaDataType<@NonNull Long, @NonNull IntervalDataPoint<@NonNull Long>> SWIMMING_LAP_COUNT
```

Count of swimming laps since the last update.

### SWIMMING_LAP_COUNT_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Long, @NonNull CumulativeDataPoint<@NonNull Long>> SWIMMING_LAP_COUNT_TOTAL
```

Count of swimming laps since the start of the current active exercise.

### SWIMMING_STROKES

```
public static final @NonNull DeltaDataType<@NonNull Long, @NonNull IntervalDataPoint<@NonNull Long>> SWIMMING_STROKES
```

Number of swimming strokes taken since the last update.

### SWIMMING_STROKES_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Long, @NonNull CumulativeDataPoint<@NonNull Long>> SWIMMING_STROKES_TOTAL
```

Total number of swimming strokes taken since the start of the current active exercise.

### VERTICAL_OSCILLATION

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull SampleDataPoint<@NonNull Double>> VERTICAL_OSCILLATION
```

Distance the center of mass moves up-and-down with each step in centimeters in `double` format.

### VERTICAL_OSCILLATION_STATS

```
public static final @NonNull AggregateDataType<@NonNull Double, @NonNull StatisticalDataPoint<@NonNull Double>> VERTICAL_OSCILLATION_STATS
```

Statistic on distance the center of mass moves up-and-down with each step in centimeters in `double` format.

### VERTICAL_RATIO

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull SampleDataPoint<@NonNull Double>> VERTICAL_RATIO
```

Vertical oscillation / stride length.

For example, a vertical oscillation of 5.0cm and stride length .8m (80 cm) would have a vertical ratio of 0.625.

### VERTICAL_RATIO_STATS

```
public static final @NonNull AggregateDataType<@NonNull Double, @NonNull StatisticalDataPoint<@NonNull Double>> VERTICAL_RATIO_STATS
```

Statistics on vertical oscillation / stride length.

For example, a vertical oscillation of 5.0cm and stride length .8m (80 cm) would have a vertical ratio of 0.625.

### VO2_MAX

```
public static final @NonNull DeltaDataType<@NonNull Double, @NonNull SampleDataPoint<@NonNull Double>> VO2_MAX
```

Maximum rate of oxygen consumption measured at a specific point in time. Valid range `0f` - `100f`.

### VO2_MAX_STATS

```
public static final @NonNull AggregateDataType<@NonNull Double, @NonNull StatisticalDataPoint<@NonNull Double>> VO2_MAX_STATS
```

Statistics on maximum rate of oxygen consumption measured since the start of an exercise. Valid range `0f` - `100f`.

### WALKING_STEPS

```
public static final @NonNull DeltaDataType<@NonNull Long, @NonNull IntervalDataPoint<@NonNull Long>> WALKING_STEPS
```

Number of steps taken while walking since the last update.

### WALKING_STEPS_TOTAL

```
public static final @NonNull AggregateDataType<@NonNull Long, @NonNull CumulativeDataPoint<@NonNull Long>> WALKING_STEPS_TOTAL
```

Total number of steps taken while walking since the start of the current active exercise.

## Public constructors

### DataType

```
public <T extends Object, D extends DataPoint<@NonNull T>> DataType(
    @NonNull String name,
    @NonNull DataType.TimeType timeType,
    @NonNull Class<@NonNull T> valueClass,
    boolean isAggregate
)
```

## Public methods

### equals

```
public boolean equals(Object other)
```

### getName

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

```
public final @NonNull String getName()
```

Returns the name of this `https://developer.android.com/reference/androidx/health/services/client/data/DataType`, e.g. `"Steps"`.

### getValueClass

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

```
public final @NonNull Class<@NonNull T> getValueClass()
```

Returns the underlying `https://developer.android.com/reference/java/lang/Class.html` of this `https://developer.android.com/reference/androidx/health/services/client/data/DataType`.

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```