BasalMetabolicRateRecord

class BasalMetabolicRateRecord : 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 companion properties

AggregateMetric<Energy>

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

Public constructors

BasalMetabolicRateRecord(
    time: Instant,
    zoneOffset: ZoneOffset?,
    basalMetabolicRate: Power,
    metadata: Metadata
)

Public functions

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

Public properties

Power

Basal metabolic rate, in Power 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

BASAL_CALORIES_TOTAL

val BASAL_CALORIES_TOTALAggregateMetric<Energy>

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
BasalMetabolicRateRecord(
    time: Instant,
    zoneOffset: ZoneOffset?,
    basalMetabolicRate: Power,
    metadata: Metadata = Metadata.EMPTY
)

Public functions

equals

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

hashCode

open fun hashCode(): Int

Public properties

basalMetabolicRate

Added in 1.1.0-alpha07
val basalMetabolicRatePower

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

metadata

Added in 1.1.0-alpha07
open val metadataMetadata

Set of common metadata associated with the written record.

time

Added in 1.1.0-alpha07
open val timeInstant

Time the record happened.

zoneOffset

Added in 1.1.0-alpha07
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.