WeightRecord
class WeightRecord : Record
Captures the user's weight.
See Mass for supported units.
Summary
Public companion properties |
|
|---|---|
AggregateMetric<Mass> |
Metric identifier to retrieve the average weight from |
AggregateMetric<Mass> |
Metric identifier to retrieve the maximum weight from |
AggregateMetric<Mass> |
Metric identifier to retrieve the minimum weight from |
Public constructors |
|---|
WeightRecord( |
Public properties |
|
|---|---|
open Metadata |
Set of common metadata associated with the written record. |
open Instant |
Time the record happened. |
Mass |
User's weight in kilograms. |
open ZoneOffset? |
User experienced zone offset at |
Public companion properties
WEIGHT_AVG
val WEIGHT_AVG: AggregateMetric<Mass>
Metric identifier to retrieve the average weight from androidx.health.connect.client.aggregate.AggregationResult.
WEIGHT_MAX
val WEIGHT_MAX: AggregateMetric<Mass>
Metric identifier to retrieve the maximum weight from androidx.health.connect.client.aggregate.AggregationResult.
WEIGHT_MIN
val WEIGHT_MIN: AggregateMetric<Mass>
Metric identifier to retrieve the minimum weight from androidx.health.connect.client.aggregate.AggregationResult.
Public constructors
WeightRecord
WeightRecord(
time: Instant,
zoneOffset: ZoneOffset?,
weight: Mass,
metadata: Metadata
)
Public functions
Public properties
weight
val weight: Mass
User's weight in kilograms. Required field. Valid range: 0-1000 kilograms.
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.