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 |
|
| Public methods | |
|---|---|
| Boolean |
Indicates whether some other object is "equal to" this one. |
| Energy | |
| Int |
hashCode()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 |
Public methods
equals
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
fun getEnergy(): Energy
| Return | |
|---|---|
Energy |
energy burned during this activity in Energy unit. This value cannot be null. |
hashCode
fun hashCode(): Int
Returns a hash code value for the object.
| Return | |
|---|---|
Int |
a hash code value for this object. |
Properties
ENERGY_TOTAL
static val ENERGY_TOTAL: AggregationType<Energy!>
Metric identifier to get total energy from total calories burned using aggregate APIs in HealthConnectManager