Stay organized with collections
Save and categorize content based on your preferences.
abstract class DataPoint<T : Any>
Base class to represent individual pieces of data of type dataType
.
Summary
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[],null,["# DataPoint\n=========\n\nArtifact: [androidx.health:health-services-client](/jetpack/androidx/releases/health) \n[View Source](https://cs.android.com/search?q=file:androidx/health/services/client/data/DataPoint.kt+class:androidx.health.services.client.data.DataPoint) \nAdded in [1.0.0](/jetpack/androidx/releases/health#1.0.0)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/health/services/client/data/DataPoint \"View this page in Java\")\n\n\n```\nabstract class DataPoint\u003cT : Any\u003e\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[CumulativeDataPoint](/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint), [IntervalDataPoint](/reference/kotlin/androidx/health/services/client/data/IntervalDataPoint), [SampleDataPoint](/reference/kotlin/androidx/health/services/client/data/SampleDataPoint), [StatisticalDataPoint](/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint) \n\n|-----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CumulativeDataPoint](/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint) | A [DataPoint](/reference/kotlin/androidx/health/services/client/data/DataPoint) containing a cumulative [total](/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#total()) for the type [dataType](/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#dataType()) between [start](/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#start()) and [end](/reference/kotlin/androidx/health/services/client/data/CumulativeDataPoint#end()). |\n| [IntervalDataPoint](/reference/kotlin/androidx/health/services/client/data/IntervalDataPoint) | Data point that includes just the delta from the previous data point for [dataType](/reference/kotlin/androidx/health/services/client/data/IntervalDataPoint#dataType()). |\n| [SampleDataPoint](/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. |\n| [StatisticalDataPoint](/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint) | Data point that represents statistics on [SampleDataPoint](/reference/kotlin/androidx/health/services/client/data/SampleDataPoint)s between [start](/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#start()) and [end](/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#end()), though it is not required to request samples separately. |\n\n*** ** * ** ***\n\nBase class to represent individual pieces of data of type [dataType](/reference/kotlin/androidx/health/services/client/data/DataPoint#dataType()).\n\nSummary\n-------\n\n| ### Public properties |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `open `[DataType](/reference/kotlin/androidx/health/services/client/data/DataType)`\u003cT, `[DataPoint](/reference/kotlin/androidx/health/services/client/data/DataPoint)`\u003cT\u003e\u003e` | [dataType](/reference/kotlin/androidx/health/services/client/data/DataPoint#dataType()) Type of data contained within this [DataPoint](/reference/kotlin/androidx/health/services/client/data/DataPoint). |\n\nPublic properties\n-----------------\n\n### dataType\n\nAdded in [1.0.0](/jetpack/androidx/releases/health#1.0.0) \n\n```\nopen val dataType: DataType\u003cT, DataPoint\u003cT\u003e\u003e\n```\n\nType of data contained within this [DataPoint](/reference/kotlin/androidx/health/services/client/data/DataPoint)."]]