AggregatedData

AggregatedData represents a set of statistical data aggregated over a period of time, such as the values of the aggregate operations MIN, MAX, TOTAL, and LAST for a HealthDataPoint.

Since

1.0.0

Properties

Link copied to clipboard

The end time of the aggregate data. It is exclusive and specified as Instant in milliseconds.

Link copied to clipboard

The start time of the aggregated data. It is inclusive and specified as Instant in milliseconds.

Link copied to clipboard
val value: T?

The data value that is the result of the aggregate operation.

Functions

Link copied to clipboard

Retrieves the end time of the data as a LocalDateTime.

Link copied to clipboard

Retrieves the start time of the data as a LocalDateTime.

Link copied to clipboard
fun getValueOrDefault(defaultValue: T): T

Retrieves the value of the data, or the defaultValue if the data does not contain any value for the aggregate operation.

Preferences Submitted

You have successfully updated your cookie preferences.