BasalMetabolicRateRecord

public final class BasalMetabolicRateRecord implements Record


Captures the BMR of a user. Each record represents the energy a user would burn if at rest all day, based on their height and weight.

Summary

Public fields

static final @NonNull AggregateMetric<@NonNull Energy>

Metric identifier to retrieve the total basal calories burned from androidx.health.connect.client.aggregate.AggregationResult.

Public constructors

BasalMetabolicRateRecord(
    @NonNull Instant time,
    ZoneOffset zoneOffset,
    @NonNull Power basalMetabolicRate,
    @NonNull Metadata metadata
)

Public methods

boolean
equals(Object other)
final @NonNull Power

Basal metabolic rate, in Power unit.

@NonNull Metadata

Set of common metadata associated with the written record.

@NonNull Instant

Time the record happened.

ZoneOffset

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

int

Public fields

BASAL_CALORIES_TOTAL

public static final @NonNull AggregateMetric<@NonNull EnergyBASAL_CALORIES_TOTAL

Metric identifier to retrieve the total basal calories burned from androidx.health.connect.client.aggregate.AggregationResult.

Public constructors

BasalMetabolicRateRecord

Added in 1.1.0-alpha07
public BasalMetabolicRateRecord(
    @NonNull Instant time,
    ZoneOffset zoneOffset,
    @NonNull Power basalMetabolicRate,
    @NonNull Metadata metadata
)

Public methods

equals

public boolean equals(Object other)

getBasalMetabolicRate

Added in 1.1.0-alpha07
public final @NonNull Power getBasalMetabolicRate()

Basal metabolic rate, in Power unit. Required field. Valid range: 0-10000 kcal/day.

getMetadata

Added in 1.1.0-alpha07
public @NonNull Metadata getMetadata()

Set of common metadata associated with the written record.

getTime

Added in 1.1.0-alpha07
public @NonNull Instant getTime()

Time the record happened.

getZoneOffset

Added in 1.1.0-alpha07
public ZoneOffset getZoneOffset()

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.

hashCode

public int hashCode()