NutritionRecord


class NutritionRecord : Record


Captures what nutrients were consumed as part of a meal or a food item.

Summary

Public companion properties

AggregateMetric<Mass>

Metric identifier to retrieve the total biotin from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total caffeine from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total calcium from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total chloride from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total cholesterol from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total chromium from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total copper from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total dietary fiber from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Energy>

Metric identifier to retrieve the total energy from fat from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Energy>

Metric identifier to retrieve the total energy from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total folate from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total folic acid from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total iodine from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total iron from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total magnesium from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total manganese from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total molybdenum from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total monounsaturated fat from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total niacin from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total pantothenic acid from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total phosphorus from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total polyunsaturated fat from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total potassium from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total protein from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total riboflavin from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total saturated fat from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total selenium from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total sodium from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total sugar from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total thiamin from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total total carbohydrate from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total total fat from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total trans fat from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total unsaturated fat from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total vitamin a from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total vitamin b12 from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total vitamin b6 from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total vitamin c from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total vitamin d from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total vitamin e from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total vitamin k from androidx.health.connect.client.aggregate.AggregationResult.

AggregateMetric<Mass>

Metric identifier to retrieve the total zinc from androidx.health.connect.client.aggregate.AggregationResult.

Public constructors

NutritionRecord(
    startTime: Instant,
    startZoneOffset: ZoneOffset?,
    endTime: Instant,
    endZoneOffset: ZoneOffset?,
    metadata: Metadata,
    biotin: Mass?,
    caffeine: Mass?,
    calcium: Mass?,
    energy: Energy?,
    energyFromFat: Energy?,
    chloride: Mass?,
    cholesterol: Mass?,
    chromium: Mass?,
    copper: Mass?,
    dietaryFiber: Mass?,
    folate: Mass?,
    folicAcid: Mass?,
    iodine: Mass?,
    iron: Mass?,
    magnesium: Mass?,
    manganese: Mass?,
    molybdenum: Mass?,
    monounsaturatedFat: Mass?,
    niacin: Mass?,
    pantothenicAcid: Mass?,
    phosphorus: Mass?,
    polyunsaturatedFat: Mass?,
    potassium: Mass?,
    protein: Mass?,
    riboflavin: Mass?,
    saturatedFat: Mass?,
    selenium: Mass?,
    sodium: Mass?,
    sugar: Mass?,
    thiamin: Mass?,
    totalCarbohydrate: Mass?,
    totalFat: Mass?,
    transFat: Mass?,
    unsaturatedFat: Mass?,
    vitaminA: Mass?,
    vitaminB12: Mass?,
    vitaminB6: Mass?,
    vitaminC: Mass?,
    vitaminD: Mass?,
    vitaminE: Mass?,
    vitaminK: Mass?,
    zinc: Mass?,
    name: String?,
    mealType: Int
)

Public functions

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

Public properties

Mass?

Biotin in Mass unit.

Mass?

Caffeine in Mass unit.

Mass?

Calcium in Mass unit.

Mass?

Chloride in Mass unit.

Mass?

Cholesterol in Mass unit.

Mass?

Chromium in Mass unit.

Mass?

Copper in Mass unit.

Mass?

Dietary fiber in Mass unit.

open Instant

End time of the record.

open ZoneOffset?

User experienced zone offset at endTime, or null if unknown.

Energy?

Energy in Energy unit.

Energy?

Energy from fat in Energy unit.

Mass?

Folate in Mass unit.

Mass?

Folic acid in Mass unit.

Mass?

Iodine in Mass unit.

Mass?

Iron in Mass unit.

Mass?

Magnesium in Mass unit.

Mass?

Manganese in Mass unit.

Int

Type of meal related to the nutrients consumed.

open Metadata

Set of common metadata associated with the written record.

Mass?

Molybdenum in Mass unit.

Mass?

Monounsaturated fat in Mass unit.

String?

Name for food or drink, provided by the user.

Mass?

Niacin in Mass unit.

Mass?

Pantothenic acid in Mass unit.

Mass?

Phosphorus in Mass unit.

Mass?

Polyunsaturated fat in Mass unit.

Mass?

Potassium in Mass unit.

Mass?

Protein in Mass unit.

Mass?

Riboflavin in Mass unit.

Mass?

Saturated fat in Mass unit.

Mass?

Selenium in Mass unit.

Mass?

Sodium in Mass unit.

open Instant

Start time of the record.

open ZoneOffset?

User experienced zone offset at startTime, or null if unknown.

Mass?

Sugar in Mass unit.

Mass?

Thiamin in Mass unit.

Mass?

Total carbohydrate in Mass unit.

Mass?

Total fat in Mass unit.

Mass?

Trans fat in Mass unit.

Mass?

Unsaturated fat in Mass unit.

Mass?

Vitamin A in Mass unit.

Mass?

Vitamin B12 in Mass unit.

Mass?

Vitamin B6 in Mass unit.

Mass?

Vitamin C in Mass unit.

Mass?

Vitamin D in Mass unit.

Mass?

Vitamin E in Mass unit.

Mass?

Vitamin K in Mass unit.

Mass?

Zinc in Mass unit.

Public companion properties

BIOTIN_TOTAL

val BIOTIN_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total biotin from androidx.health.connect.client.aggregate.AggregationResult.

CAFFEINE_TOTAL

val CAFFEINE_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total caffeine from androidx.health.connect.client.aggregate.AggregationResult.

CALCIUM_TOTAL

val CALCIUM_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total calcium from androidx.health.connect.client.aggregate.AggregationResult.

CHLORIDE_TOTAL

val CHLORIDE_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total chloride from androidx.health.connect.client.aggregate.AggregationResult.

CHOLESTEROL_TOTAL

val CHOLESTEROL_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total cholesterol from androidx.health.connect.client.aggregate.AggregationResult.

CHROMIUM_TOTAL

val CHROMIUM_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total chromium from androidx.health.connect.client.aggregate.AggregationResult.

COPPER_TOTAL

val COPPER_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total copper from androidx.health.connect.client.aggregate.AggregationResult.

DIETARY_FIBER_TOTAL

val DIETARY_FIBER_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total dietary fiber from androidx.health.connect.client.aggregate.AggregationResult.

ENERGY_FROM_FAT_TOTAL

val ENERGY_FROM_FAT_TOTAL: AggregateMetric<Energy>

Metric identifier to retrieve the total energy from fat from androidx.health.connect.client.aggregate.AggregationResult.

ENERGY_TOTAL

val ENERGY_TOTAL: AggregateMetric<Energy>

Metric identifier to retrieve the total energy from androidx.health.connect.client.aggregate.AggregationResult.

FOLATE_TOTAL

val FOLATE_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total folate from androidx.health.connect.client.aggregate.AggregationResult.

FOLIC_ACID_TOTAL

val FOLIC_ACID_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total folic acid from androidx.health.connect.client.aggregate.AggregationResult.

IODINE_TOTAL

val IODINE_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total iodine from androidx.health.connect.client.aggregate.AggregationResult.

IRON_TOTAL

val IRON_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total iron from androidx.health.connect.client.aggregate.AggregationResult.

MAGNESIUM_TOTAL

val MAGNESIUM_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total magnesium from androidx.health.connect.client.aggregate.AggregationResult.

MANGANESE_TOTAL

val MANGANESE_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total manganese from androidx.health.connect.client.aggregate.AggregationResult.

MOLYBDENUM_TOTAL

val MOLYBDENUM_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total molybdenum from androidx.health.connect.client.aggregate.AggregationResult.

MONOUNSATURATED_FAT_TOTAL

val MONOUNSATURATED_FAT_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total monounsaturated fat from androidx.health.connect.client.aggregate.AggregationResult.

NIACIN_TOTAL

val NIACIN_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total niacin from androidx.health.connect.client.aggregate.AggregationResult.

PANTOTHENIC_ACID_TOTAL

val PANTOTHENIC_ACID_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total pantothenic acid from androidx.health.connect.client.aggregate.AggregationResult.

PHOSPHORUS_TOTAL

val PHOSPHORUS_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total phosphorus from androidx.health.connect.client.aggregate.AggregationResult.

POLYUNSATURATED_FAT_TOTAL

val POLYUNSATURATED_FAT_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total polyunsaturated fat from androidx.health.connect.client.aggregate.AggregationResult.

POTASSIUM_TOTAL

val POTASSIUM_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total potassium from androidx.health.connect.client.aggregate.AggregationResult.

PROTEIN_TOTAL

val PROTEIN_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total protein from androidx.health.connect.client.aggregate.AggregationResult.

RIBOFLAVIN_TOTAL

val RIBOFLAVIN_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total riboflavin from androidx.health.connect.client.aggregate.AggregationResult.

SATURATED_FAT_TOTAL

val SATURATED_FAT_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total saturated fat from androidx.health.connect.client.aggregate.AggregationResult.

SELENIUM_TOTAL

val SELENIUM_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total selenium from androidx.health.connect.client.aggregate.AggregationResult.

SODIUM_TOTAL

val SODIUM_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total sodium from androidx.health.connect.client.aggregate.AggregationResult.

SUGAR_TOTAL

val SUGAR_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total sugar from androidx.health.connect.client.aggregate.AggregationResult.

THIAMIN_TOTAL

val THIAMIN_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total thiamin from androidx.health.connect.client.aggregate.AggregationResult.

TOTAL_CARBOHYDRATE_TOTAL

val TOTAL_CARBOHYDRATE_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total total carbohydrate from androidx.health.connect.client.aggregate.AggregationResult.

TOTAL_FAT_TOTAL

val TOTAL_FAT_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total total fat from androidx.health.connect.client.aggregate.AggregationResult.

TRANS_FAT_TOTAL

val TRANS_FAT_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total trans fat from androidx.health.connect.client.aggregate.AggregationResult.

UNSATURATED_FAT_TOTAL

val UNSATURATED_FAT_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total unsaturated fat from androidx.health.connect.client.aggregate.AggregationResult.

VITAMIN_A_TOTAL

val VITAMIN_A_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total vitamin a from androidx.health.connect.client.aggregate.AggregationResult.

VITAMIN_B12_TOTAL

val VITAMIN_B12_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total vitamin b12 from androidx.health.connect.client.aggregate.AggregationResult.

VITAMIN_B6_TOTAL

val VITAMIN_B6_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total vitamin b6 from androidx.health.connect.client.aggregate.AggregationResult.

VITAMIN_C_TOTAL

val VITAMIN_C_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total vitamin c from androidx.health.connect.client.aggregate.AggregationResult.

VITAMIN_D_TOTAL

val VITAMIN_D_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total vitamin d from androidx.health.connect.client.aggregate.AggregationResult.

VITAMIN_E_TOTAL

val VITAMIN_E_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total vitamin e from androidx.health.connect.client.aggregate.AggregationResult.

VITAMIN_K_TOTAL

val VITAMIN_K_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total vitamin k from androidx.health.connect.client.aggregate.AggregationResult.

ZINC_TOTAL

val ZINC_TOTAL: AggregateMetric<Mass>

Metric identifier to retrieve the total zinc from androidx.health.connect.client.aggregate.AggregationResult.

Public constructors

NutritionRecord

Added in 1.1.0
NutritionRecord(
    startTime: Instant,
    startZoneOffset: ZoneOffset?,
    endTime: Instant,
    endZoneOffset: ZoneOffset?,
    metadata: Metadata,
    biotin: Mass? = null,
    caffeine: Mass? = null,
    calcium: Mass? = null,
    energy: Energy? = null,
    energyFromFat: Energy? = null,
    chloride: Mass? = null,
    cholesterol: Mass? = null,
    chromium: Mass? = null,
    copper: Mass? = null,
    dietaryFiber: Mass? = null,
    folate: Mass? = null,
    folicAcid: Mass? = null,
    iodine: Mass? = null,
    iron: Mass? = null,
    magnesium: Mass? = null,
    manganese: Mass? = null,
    molybdenum: Mass? = null,
    monounsaturatedFat: Mass? = null,
    niacin: Mass? = null,
    pantothenicAcid: Mass? = null,
    phosphorus: Mass? = null,
    polyunsaturatedFat: Mass? = null,
    potassium: Mass? = null,
    protein: Mass? = null,
    riboflavin: Mass? = null,
    saturatedFat: Mass? = null,
    selenium: Mass? = null,
    sodium: Mass? = null,
    sugar: Mass? = null,
    thiamin: Mass? = null,
    totalCarbohydrate: Mass? = null,
    totalFat: Mass? = null,
    transFat: Mass? = null,
    unsaturatedFat: Mass? = null,
    vitaminA: Mass? = null,
    vitaminB12: Mass? = null,
    vitaminB6: Mass? = null,
    vitaminC: Mass? = null,
    vitaminD: Mass? = null,
    vitaminE: Mass? = null,
    vitaminK: Mass? = null,
    zinc: Mass? = null,
    name: String? = null,
    mealType: Int = MealType.MEAL_TYPE_UNKNOWN
)

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

biotin

Added in 1.1.0
val biotin: Mass?

Biotin in Mass unit. Optional field. Valid range: 0-100 grams.

caffeine

Added in 1.1.0
val caffeine: Mass?

Caffeine in Mass unit. Optional field. Valid range: 0-100 grams.

calcium

Added in 1.1.0
val calcium: Mass?

Calcium in Mass unit. Optional field. Valid range: 0-100 grams.

chloride

Added in 1.1.0
val chloride: Mass?

Chloride in Mass unit. Optional field. Valid range: 0-100 grams.

cholesterol

Added in 1.1.0
val cholesterol: Mass?

Cholesterol in Mass unit. Optional field. Valid range: 0-100 grams.

chromium

Added in 1.1.0
val chromium: Mass?

Chromium in Mass unit. Optional field. Valid range: 0-100 grams.

copper

Added in 1.1.0
val copper: Mass?

Copper in Mass unit. Optional field. Valid range: 0-100 grams.

dietaryFiber

Added in 1.1.0
val dietaryFiber: Mass?

Dietary fiber in Mass unit. Optional field. Valid range: 0-100000 grams.

endTime

Added in 1.1.0
open val endTime: Instant

End time of the record.

endZoneOffset

Added in 1.1.0
open val endZoneOffset: ZoneOffset?

User experienced zone offset at endTime, 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.

energy

Added in 1.1.0
val energy: Energy?

Energy in Energy unit. Optional field. Valid range: 0-100000 kcal.

energyFromFat

Added in 1.1.0
val energyFromFat: Energy?

Energy from fat in Energy unit. Optional field. Valid range: 0-100000 kcal.

folate

Added in 1.1.0
val folate: Mass?

Folate in Mass unit. Optional field. Valid range: 0-100 grams.

folicAcid

Added in 1.1.0
val folicAcid: Mass?

Folic acid in Mass unit. Optional field. Valid range: 0-100 grams.

iodine

Added in 1.1.0
val iodine: Mass?

Iodine in Mass unit. Optional field. Valid range: 0-100 grams.

iron

Added in 1.1.0
val iron: Mass?

Iron in Mass unit. Optional field. Valid range: 0-100 grams.

magnesium

Added in 1.1.0
val magnesium: Mass?

Magnesium in Mass unit. Optional field. Valid range: 0-100 grams.

manganese

Added in 1.1.0
val manganese: Mass?

Manganese in Mass unit. Optional field. Valid range: 0-100 grams.

mealType

Added in 1.1.0
val mealType: Int

Type of meal related to the nutrients consumed. Optional, enum field. Allowed values: MealType.

See also
MealType

metadata

open val metadata: Metadata

Set of common metadata associated with the written record.

molybdenum

Added in 1.1.0
val molybdenum: Mass?

Molybdenum in Mass unit. Optional field. Valid range: 0-100 grams.

monounsaturatedFat

Added in 1.1.0
val monounsaturatedFat: Mass?

Monounsaturated fat in Mass unit. Optional field. Valid range: 0-100000 grams.

name

Added in 1.1.0
val name: String?

Name for food or drink, provided by the user. Optional field.

niacin

Added in 1.1.0
val niacin: Mass?

Niacin in Mass unit. Optional field. Valid range: 0-100 grams.

pantothenicAcid

Added in 1.1.0
val pantothenicAcid: Mass?

Pantothenic acid in Mass unit. Optional field. Valid range: 0-100 grams.

phosphorus

Added in 1.1.0
val phosphorus: Mass?

Phosphorus in Mass unit. Optional field. Valid range: 0-100 grams.

polyunsaturatedFat

Added in 1.1.0
val polyunsaturatedFat: Mass?

Polyunsaturated fat in Mass unit. Optional field. Valid range: 0-100000 grams.

potassium

Added in 1.1.0
val potassium: Mass?

Potassium in Mass unit. Optional field. Valid range: 0-100 grams.

protein

Added in 1.1.0
val protein: Mass?

Protein in Mass unit. Optional field. Valid range: 0-100000 grams.

riboflavin

Added in 1.1.0
val riboflavin: Mass?

Riboflavin in Mass unit. Optional field. Valid range: 0-100 grams.

saturatedFat

Added in 1.1.0
val saturatedFat: Mass?

Saturated fat in Mass unit. Optional field. Valid range: 0-100000 grams.

selenium

Added in 1.1.0
val selenium: Mass?

Selenium in Mass unit. Optional field. Valid range: 0-100 grams.

sodium

Added in 1.1.0
val sodium: Mass?

Sodium in Mass unit. Optional field. Valid range: 0-100 grams.

startTime

Added in 1.1.0
open val startTime: Instant

Start time of the record.

startZoneOffset

Added in 1.1.0
open val startZoneOffset: ZoneOffset?

User experienced zone offset at startTime, 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.

sugar

Added in 1.1.0
val sugar: Mass?

Sugar in Mass unit. Optional field. Valid range: 0-100000 grams.

thiamin

Added in 1.1.0
val thiamin: Mass?

Thiamin in Mass unit. Optional field. Valid range: 0-100 grams.

totalCarbohydrate

Added in 1.1.0
val totalCarbohydrate: Mass?

Total carbohydrate in Mass unit. Optional field. Valid range: 0-100000 grams.

totalFat

Added in 1.1.0
val totalFat: Mass?

Total fat in Mass unit. Optional field. Valid range: 0-100000 grams.

transFat

Added in 1.1.0
val transFat: Mass?

Trans fat in Mass unit. Optional field. Valid range: 0-100000 grams.

unsaturatedFat

Added in 1.1.0
val unsaturatedFat: Mass?

Unsaturated fat in Mass unit. Optional field. Valid range: 0-100000 grams.

vitaminA

Added in 1.1.0
val vitaminA: Mass?

Vitamin A in Mass unit. Optional field. Valid range: 0-100 grams.

vitaminB12

Added in 1.1.0
val vitaminB12: Mass?

Vitamin B12 in Mass unit. Optional field. Valid range: 0-100 grams.

vitaminB6

Added in 1.1.0
val vitaminB6: Mass?

Vitamin B6 in Mass unit. Optional field. Valid range: 0-100 grams.

vitaminC

Added in 1.1.0
val vitaminC: Mass?

Vitamin C in Mass unit. Optional field. Valid range: 0-100 grams.

vitaminD

Added in 1.1.0
val vitaminD: Mass?

Vitamin D in Mass unit. Optional field. Valid range: 0-100 grams.

vitaminE

Added in 1.1.0
val vitaminE: Mass?

Vitamin E in Mass unit. Optional field. Valid range: 0-100 grams.

vitaminK

Added in 1.1.0
val vitaminK: Mass?

Vitamin K in Mass unit. Optional field. Valid range: 0-100 grams.

zinc

Added in 1.1.0
val zinc: Mass?

Zinc in Mass unit. Optional field. Valid range: 0-100 grams.