Added in API level 34

TotalCaloriesBurnedRecord

class TotalCaloriesBurnedRecord : IntervalRecord
kotlin.Any
   ↳ android.health.connect.datatypes.Record
   ↳ android.health.connect.datatypes.IntervalRecord
   ↳ android.health.connect.datatypes.TotalCaloriesBurnedRecord

Total energy burned by the user in Energy, including active & basal energy burned (BMR). Each record represents the total kilocalories burned over a time interval.

Summary

Nested classes

Builder class for TotalCaloriesBurnedRecord

Public methods
Boolean
equals(other: Any?)

Indicates whether some other object is "equal to" this one.

Energy

Int

Returns a hash code value for the object.

Inherited functions
Properties
static AggregationType<Energy!>

Metric identifier to get total energy from total calories burned using aggregate APIs in HealthConnectManager

Public methods

equals

Added in API level 34
fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one.

Parameters
obj the reference object with which to compare.
object the reference object with which to compare. This value may be null.
Return
Boolean true if this object is the same as the object argument; false otherwise.

getEnergy

Added in API level 34
fun getEnergy(): Energy
Return
Energy energy burned during this activity in Energy unit. This value cannot be null.

hashCode

Added in API level 34
fun hashCode(): Int

Returns a hash code value for the object.

Return
Int a hash code value for this object.

Properties

ENERGY_TOTAL

Added in API level 34
static val ENERGY_TOTAL: AggregationType<Energy!>

Metric identifier to get total energy from total calories burned using aggregate APIs in HealthConnectManager