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, specified as an exclusive Instant, in milliseconds.

Link copied to clipboard

The start time of the aggregated data, specified as an inclusive 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 LocalDateTime, exclusive and based on the zone offset of endTime timezone.

Link copied to clipboard

Retrieves the start time of the data as LocalDateTime, inclusive and based on the zone offset of startTime timezone.

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.