class HeightRecord : Record


Captures the user's height.

Summary

Public companion properties

AggregateMetric<Length>

Metric identifier to retrieve the average height from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Length>

Metric identifier to retrieve the maximum height from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Length>

Metric identifier to retrieve minimum height from androidx.health.connect.client.aggregate.AggregationResult.

Public constructors

HeightRecord(
    time: Instant,
    zoneOffset: ZoneOffset?,
    height: Length,
    metadata: Metadata
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Length

Height in Length unit.

open Metadata

Set of common metadata associated with the written record.

open Instant

Time the record happened.

open ZoneOffset?

User experienced zone offset at time, or null if unknown.

Public companion properties

HEIGHT_AVG

val HEIGHT_AVGAggregateMetric<Length>

Metric identifier to retrieve the average height from androidx.health.connect.client.aggregate.AggregationResult.

HEIGHT_MAX

val HEIGHT_MAXAggregateMetric<Length>

Metric identifier to retrieve the maximum height from androidx.health.connect.client.aggregate.AggregationResult.

HEIGHT_MIN

val HEIGHT_MINAggregateMetric<Length>

Metric identifier to retrieve minimum height from androidx.health.connect.client.aggregate.AggregationResult.

Public constructors

HeightRecord

Added in 1.1.0-alpha10
HeightRecord(
    time: Instant,
    zoneOffset: ZoneOffset?,
    height: Length,
    metadata: Metadata = Metadata.EMPTY
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

height

Added in 1.1.0-alpha10
val heightLength

Height in Length unit. Required field. Valid range: 0-3 meters.

metadata

Added in 1.1.0-alpha10
open val metadataMetadata

Set of common metadata associated with the written record.

time

Added in 1.1.0-alpha10
open val timeInstant

Time the record happened.

zoneOffset

Added in 1.1.0-alpha10
open val zoneOffsetZoneOffset?

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.