HeightRecord
class HeightRecord : Record
Captures the user's height.
Summary
Public companion properties |
|
|---|---|
AggregateMetric<Length> |
Metric identifier to retrieve the average height from |
AggregateMetric<Length> |
Metric identifier to retrieve the maximum height from |
AggregateMetric<Length> |
Metric identifier to retrieve minimum height from |
Public constructors |
|---|
HeightRecord( |
Public properties |
|
|---|---|
Length |
Height in |
open Metadata |
Set of common metadata associated with the written record. |
open Instant |
Time the record happened. |
open ZoneOffset? |
User experienced zone offset at |
Public companion properties
HEIGHT_AVG
val HEIGHT_AVG: AggregateMetric<Length>
Metric identifier to retrieve the average height from androidx.health.connect.client.aggregate.AggregationResult.
HEIGHT_MAX
val HEIGHT_MAX: AggregateMetric<Length>
Metric identifier to retrieve the maximum height from androidx.health.connect.client.aggregate.AggregationResult.
HEIGHT_MIN
val HEIGHT_MIN: AggregateMetric<Length>
Metric identifier to retrieve minimum height from androidx.health.connect.client.aggregate.AggregationResult.
Public constructors
HeightRecord
HeightRecord(
time: Instant,
zoneOffset: ZoneOffset?,
height: Length,
metadata: Metadata
)
Public functions
Public properties
height
val height: Length
Height in Length unit. Required field. Valid range: 0-3 meters.
zoneOffset
open val zoneOffset: ZoneOffset?
User experienced zone offset at time, or null if unknown. Providing these will help history aggregations results stay consistent should user travel. Queries with user experienced time filters will assume system current zone offset if the information is absent.