NutritionSummary

data class NutritionSummary(val date: LocalDate, val energyKilocalories: Double? = null, val proteinGrams: Double? = null, val carbsGrams: Double? = null, val fatGrams: Double? = null, val entryCount: Int = 0)

Daily nutrition roll-up, derived from HealthKit dietary samples on iOS or Health Connect NutritionRecord entries on Android.

Constructors

Link copied to clipboard
constructor(date: LocalDate, energyKilocalories: Double? = null, proteinGrams: Double? = null, carbsGrams: Double? = null, fatGrams: Double? = null, entryCount: Int = 0)

Properties

Link copied to clipboard

Total carbohydrate for the day in grams, or null when not recorded.

Link copied to clipboard
val date: LocalDate

The local calendar date these totals cover.

Link copied to clipboard

Total energy consumed across all entries for the day, in kilocalories; null when no entry recorded energy.

Link copied to clipboard

Number of discrete meals / entries logged for the day; 0 when none.

Link copied to clipboard

Total fat for the day in grams, or null when not recorded. Macronutrient totals are populated only when the source records them; many barcode-scan / template-based entries log calories only.

Link copied to clipboard

Total protein for the day in grams, or null when not recorded.