SampleDataPoint
class SampleDataPoint<T : Any> : DataPoint
| kotlin.Any | ||
| ↳ | androidx.health.services.client.data.DataPoint | |
| ↳ | 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.
Summary
Public constructors |
|---|
<T : Any> SampleDataPoint( |
Public functions |
|
|---|---|
open operator Boolean |
|
Instant |
getTimeInstant(bootInstant: Instant)Returns the time |
open Int |
hashCode() |
Public properties |
|
|---|---|
DataPointAccuracy? |
Accuracy of this DataPoint. |
open DataType<T, SampleDataPoint<T>> |
|
Bundle |
OEM specific data. |
Duration |
The time this |
T |
The value of this data point. |
Public constructors
SampleDataPoint
<T : Any> SampleDataPoint(
dataType: DataType<T, SampleDataPoint<T>>,
value: T,
timeDurationFromBoot: Duration,
metadata: Bundle = Bundle(),
accuracy: DataPointAccuracy? = null
)
Public functions
Public properties
metadata
Added in 1.0.0
val metadata: Bundle
OEM specific data. In general, this should not be relied upon by non-preloaded apps.
timeDurationFromBoot
Added in 1.0.0
val timeDurationFromBoot: Duration
The time this DataPoint represents.