Type Method

largeCalorie()

Returns a HealthKit unit for measuring energy in large calories (Cal).

Declaration

class func largeCalorie() -> Self

Discussion

The large calorie is the same as a kilocalorie (1 Cal = 4184.0 J).

See Also

Constructing Energy Units

class func joule() -> Self

Returns a HealthKit unit for measuring energy in joules.

class func jouleUnit(with: HKMetricPrefix) -> Self

Returns a HealthKit unit for measuring energy, using joule units with the provided prefix.

class func calorie() -> Self

Returns a HealthKit unit for measuring energy in calories.

Deprecated
class func kilocalorie() -> Self

Returns a HealthKit unit for measuring energy in kilocalories.

class func smallCalorie() -> Self

Returns a HealthKit unit for measuring energy in small calories (cal).