NutritionRecord

public final class NutritionRecord
extends IntervalRecord

java.lang.Object
   ↳ android.health.connect.datatypes.Record
     ↳ android.health.connect.datatypes.IntervalRecord
       ↳ android.health.connect.datatypes.NutritionRecord


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

Summary

Nested classes

class NutritionRecord.Builder

Builder class for NutritionRecord 

Fields

public static final AggregationType<Mass> BIOTIN_TOTAL

Metric identifier to get total biotin using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> CAFFEINE_TOTAL

Metric identifier to get total caffeine using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> CALCIUM_TOTAL

Metric identifier to get total calcium using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> CHLORIDE_TOTAL

Metric identifier to get total chloride using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> CHOLESTEROL_TOTAL

Metric identifier to get total cholesterol using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> CHROMIUM_TOTAL

Metric identifier to get total chromium using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> COPPER_TOTAL

Metric identifier to get total copper using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> DIETARY_FIBER_TOTAL

Metric identifier to get total dietary fibre using aggregate APIs in HealthConnectManager

public static final AggregationType<Energy> ENERGY_FROM_FAT_TOTAL

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

public static final AggregationType<Energy> ENERGY_TOTAL

Metric identifier to get total energy using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> FOLATE_TOTAL

Metric identifier to get total folate using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> FOLIC_ACID_TOTAL

Metric identifier to get total folic acid using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> IODINE_TOTAL

Metric identifier to get total iodine using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> IRON_TOTAL

Metric identifier to get total iron using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> MAGNESIUM_TOTAL

Metric identifier to get total magnesium using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> MANGANESE_TOTAL

Metric identifier to get total manganese using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> MOLYBDENUM_TOTAL

Metric identifier to get total molybdenum using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> MONOUNSATURATED_FAT_TOTAL

Metric identifier to get total monounsaturated fat using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> NIACIN_TOTAL

Metric identifier to get total niacin using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> PANTOTHENIC_ACID_TOTAL

Metric identifier to get total pantothenic acid fat using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> PHOSPHORUS_TOTAL

Metric identifier to get total phosphorus fat using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> POLYUNSATURATED_FAT_TOTAL

Metric identifier to get total polyunsaturated fat using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> POTASSIUM_TOTAL

Metric identifier to get total potassium using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> PROTEIN_TOTAL

Metric identifier to get total protein using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> RIBOFLAVIN_TOTAL

Metric identifier to get total riboflavin using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> SATURATED_FAT_TOTAL

Metric identifier to get total saturated fat using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> SELENIUM_TOTAL

Metric identifier to get total selenium using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> SODIUM_TOTAL

Metric identifier to get total sodium using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> SUGAR_TOTAL

Metric identifier to get total sugar using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> THIAMIN_TOTAL

Metric identifier to get total thiamin using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> TOTAL_CARBOHYDRATE_TOTAL

Metric identifier to get total carbohydrate using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> TOTAL_FAT_TOTAL

Metric identifier to get total fat using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> TRANS_FAT_TOTAL

Metric identifier to get total trans fat using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> UNSATURATED_FAT_TOTAL

Metric identifier to get total unsaturated fat using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> VITAMIN_A_TOTAL

Metric identifier to get total Vitamin A using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> VITAMIN_B12_TOTAL

Metric identifier to get total Vitamin B12 using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> VITAMIN_B6_TOTAL

Metric identifier to get total Vitamin B6 using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> VITAMIN_C_TOTAL

Metric identifier to get total Vitamin C using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> VITAMIN_D_TOTAL

Metric identifier to get total Vitamin D using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> VITAMIN_E_TOTAL

Metric identifier to get total Vitamin E using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> VITAMIN_K_TOTAL

Metric identifier to get total Vitamin K using aggregate APIs in HealthConnectManager

public static final AggregationType<Mass> ZINC_TOTAL

Metric identifier to get total Zinc using aggregate APIs in HealthConnectManager

Public methods

boolean equals(Object o)

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

Mass getBiotin()
Mass getCaffeine()
Mass getCalcium()
Mass getChloride()
Mass getCholesterol()
Mass getChromium()
Mass getCopper()
Mass getDietaryFiber()
Energy getEnergy()
Energy getEnergyFromFat()
Mass getFolate()
Mass getFolicAcid()
Mass getIodine()
Mass getIron()
Mass getMagnesium()
Mass getManganese()
String getMealName()
int getMealType()
Mass getMolybdenum()
Mass getMonounsaturatedFat()
Mass getNiacin()
Mass getPantothenicAcid()
Mass getPhosphorus()
Mass getPolyunsaturatedFat()
Mass getPotassium()
Mass getProtein()
Mass getRiboflavin()
Mass getSaturatedFat()
Mass getSelenium()
Mass getSodium()
Mass getSugar()
Mass getThiamin()
Mass getTotalCarbohydrate()
Mass getTotalFat()
Mass getTransFat()
Mass getUnsaturatedFat()
Mass getVitaminA()
Mass getVitaminB12()
Mass getVitaminB6()
Mass getVitaminC()
Mass getVitaminD()
Mass getVitaminE()
Mass getVitaminK()
Mass getZinc()
int hashCode()

Returns a hash code value for the object.

Inherited methods

Fields

BIOTIN_TOTAL

Added in API level 34
public static final AggregationType<Mass> BIOTIN_TOTAL

Metric identifier to get total biotin using aggregate APIs in HealthConnectManager

CAFFEINE_TOTAL

Added in API level 34
public static final AggregationType<Mass> CAFFEINE_TOTAL

Metric identifier to get total caffeine using aggregate APIs in HealthConnectManager

CALCIUM_TOTAL

Added in API level 34
public static final AggregationType<Mass> CALCIUM_TOTAL

Metric identifier to get total calcium using aggregate APIs in HealthConnectManager

CHLORIDE_TOTAL

Added in API level 34
public static final AggregationType<Mass> CHLORIDE_TOTAL

Metric identifier to get total chloride using aggregate APIs in HealthConnectManager

CHOLESTEROL_TOTAL

Added in API level 34
public static final AggregationType<Mass> CHOLESTEROL_TOTAL

Metric identifier to get total cholesterol using aggregate APIs in HealthConnectManager

CHROMIUM_TOTAL

Added in API level 34
public static final AggregationType<Mass> CHROMIUM_TOTAL

Metric identifier to get total chromium using aggregate APIs in HealthConnectManager

COPPER_TOTAL

Added in API level 34
public static final AggregationType<Mass> COPPER_TOTAL

Metric identifier to get total copper using aggregate APIs in HealthConnectManager

DIETARY_FIBER_TOTAL

Added in API level 34
public static final AggregationType<Mass> DIETARY_FIBER_TOTAL

Metric identifier to get total dietary fibre using aggregate APIs in HealthConnectManager

ENERGY_FROM_FAT_TOTAL

Added in API level 34
public static final AggregationType<Energy> ENERGY_FROM_FAT_TOTAL

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

ENERGY_TOTAL

Added in API level 34
public static final AggregationType<Energy> ENERGY_TOTAL

Metric identifier to get total energy using aggregate APIs in HealthConnectManager

FOLATE_TOTAL

Added in API level 34
public static final AggregationType<Mass> FOLATE_TOTAL

Metric identifier to get total folate using aggregate APIs in HealthConnectManager

FOLIC_ACID_TOTAL

Added in API level 34
public static final AggregationType<Mass> FOLIC_ACID_TOTAL

Metric identifier to get total folic acid using aggregate APIs in HealthConnectManager

IODINE_TOTAL

Added in API level 34
public static final AggregationType<Mass> IODINE_TOTAL

Metric identifier to get total iodine using aggregate APIs in HealthConnectManager

IRON_TOTAL

Added in API level 34
public static final AggregationType<Mass> IRON_TOTAL

Metric identifier to get total iron using aggregate APIs in HealthConnectManager

MAGNESIUM_TOTAL

Added in API level 34
public static final AggregationType<Mass> MAGNESIUM_TOTAL

Metric identifier to get total magnesium using aggregate APIs in HealthConnectManager

MANGANESE_TOTAL

Added in API level 34
public static final AggregationType<Mass> MANGANESE_TOTAL

Metric identifier to get total manganese using aggregate APIs in HealthConnectManager

MOLYBDENUM_TOTAL

Added in API level 34
public static final AggregationType<Mass> MOLYBDENUM_TOTAL

Metric identifier to get total molybdenum using aggregate APIs in HealthConnectManager

MONOUNSATURATED_FAT_TOTAL

Added in API level 34
public static final AggregationType<Mass> MONOUNSATURATED_FAT_TOTAL

Metric identifier to get total monounsaturated fat using aggregate APIs in HealthConnectManager

NIACIN_TOTAL

Added in API level 34
public static final AggregationType<Mass> NIACIN_TOTAL

Metric identifier to get total niacin using aggregate APIs in HealthConnectManager

PANTOTHENIC_ACID_TOTAL

Added in API level 34
public static final AggregationType<Mass> PANTOTHENIC_ACID_TOTAL

Metric identifier to get total pantothenic acid fat using aggregate APIs in HealthConnectManager

PHOSPHORUS_TOTAL

Added in API level 34
public static final AggregationType<Mass> PHOSPHORUS_TOTAL

Metric identifier to get total phosphorus fat using aggregate APIs in HealthConnectManager

POLYUNSATURATED_FAT_TOTAL

Added in API level 34
public static final AggregationType<Mass> POLYUNSATURATED_FAT_TOTAL

Metric identifier to get total polyunsaturated fat using aggregate APIs in HealthConnectManager

POTASSIUM_TOTAL

Added in API level 34
public static final AggregationType<Mass> POTASSIUM_TOTAL

Metric identifier to get total potassium using aggregate APIs in HealthConnectManager

PROTEIN_TOTAL

Added in API level 34
public static final AggregationType<Mass> PROTEIN_TOTAL

Metric identifier to get total protein using aggregate APIs in HealthConnectManager

RIBOFLAVIN_TOTAL

Added in API level 34
public static final AggregationType<Mass> RIBOFLAVIN_TOTAL

Metric identifier to get total riboflavin using aggregate APIs in HealthConnectManager

SATURATED_FAT_TOTAL

Added in API level 34
public static final AggregationType<Mass> SATURATED_FAT_TOTAL

Metric identifier to get total saturated fat using aggregate APIs in HealthConnectManager

SELENIUM_TOTAL

Added in API level 34
public static final AggregationType<Mass> SELENIUM_TOTAL

Metric identifier to get total selenium using aggregate APIs in HealthConnectManager

SODIUM_TOTAL

Added in API level 34
public static final AggregationType<Mass> SODIUM_TOTAL

Metric identifier to get total sodium using aggregate APIs in HealthConnectManager

SUGAR_TOTAL

Added in API level 34
public static final AggregationType<Mass> SUGAR_TOTAL

Metric identifier to get total sugar using aggregate APIs in HealthConnectManager

THIAMIN_TOTAL

Added in API level 34
public static final AggregationType<Mass> THIAMIN_TOTAL

Metric identifier to get total thiamin using aggregate APIs in HealthConnectManager

TOTAL_CARBOHYDRATE_TOTAL

Added in API level 34
public static final AggregationType<Mass> TOTAL_CARBOHYDRATE_TOTAL

Metric identifier to get total carbohydrate using aggregate APIs in HealthConnectManager

TOTAL_FAT_TOTAL

Added in API level 34
public static final AggregationType<Mass> TOTAL_FAT_TOTAL

Metric identifier to get total fat using aggregate APIs in HealthConnectManager

TRANS_FAT_TOTAL

Added in U Extensions 10
public static final AggregationType<Mass> TRANS_FAT_TOTAL

Metric identifier to get total trans fat using aggregate APIs in HealthConnectManager

UNSATURATED_FAT_TOTAL

Added in API level 34
public static final AggregationType<Mass> UNSATURATED_FAT_TOTAL

Metric identifier to get total unsaturated fat using aggregate APIs in HealthConnectManager

VITAMIN_A_TOTAL

Added in API level 34
public static final AggregationType<Mass> VITAMIN_A_TOTAL

Metric identifier to get total Vitamin A using aggregate APIs in HealthConnectManager

VITAMIN_B12_TOTAL

Added in API level 34
public static final AggregationType<Mass> VITAMIN_B12_TOTAL

Metric identifier to get total Vitamin B12 using aggregate APIs in HealthConnectManager

VITAMIN_B6_TOTAL

Added in API level 34
public static final AggregationType<Mass> VITAMIN_B6_TOTAL

Metric identifier to get total Vitamin B6 using aggregate APIs in HealthConnectManager

VITAMIN_C_TOTAL

Added in API level 34
public static final AggregationType<Mass> VITAMIN_C_TOTAL

Metric identifier to get total Vitamin C using aggregate APIs in HealthConnectManager

VITAMIN_D_TOTAL

Added in API level 34
public static final AggregationType<Mass> VITAMIN_D_TOTAL

Metric identifier to get total Vitamin D using aggregate APIs in HealthConnectManager

VITAMIN_E_TOTAL

Added in API level 34
public static final AggregationType<Mass> VITAMIN_E_TOTAL

Metric identifier to get total Vitamin E using aggregate APIs in HealthConnectManager

VITAMIN_K_TOTAL

Added in API level 34
public static final AggregationType<Mass> VITAMIN_K_TOTAL

Metric identifier to get total Vitamin K using aggregate APIs in HealthConnectManager

ZINC_TOTAL

Added in API level 34
public static final AggregationType<Mass> ZINC_TOTAL

Metric identifier to get total Zinc using aggregate APIs in HealthConnectManager

Public methods

equals

Added in API level 34
public boolean equals (Object o)

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

Parameters
o Object: the reference object with which to compare.

Returns
boolean true if this object is the same as the obj

getBiotin

Added in API level 34
public Mass getBiotin ()

Returns
Mass biotin in Mass unit. This value may be null.

getCaffeine

Added in API level 34
public Mass getCaffeine ()

Returns
Mass caffeine in Mass unit. This value may be null.

getCalcium

Added in API level 34
public Mass getCalcium ()

Returns
Mass calcium in Mass unit. This value may be null.

getChloride

Added in API level 34
public Mass getChloride ()

Returns
Mass chloride in Mass unit. This value may be null.

getCholesterol

Added in API level 34
public Mass getCholesterol ()

Returns
Mass cholesterol in Mass unit. This value may be null.

getChromium

Added in API level 34
public Mass getChromium ()

Returns
Mass chromium in Mass unit. This value may be null.

getCopper

Added in API level 34
public Mass getCopper ()

Returns
Mass copper in Mass unit. This value may be null.

getDietaryFiber

Added in API level 34
public Mass getDietaryFiber ()

Returns
Mass dietaryFiber in Mass unit. This value may be null.

getEnergy

Added in API level 34
public Energy getEnergy ()

Returns
Energy energy in Energy unit. This value may be null.

getEnergyFromFat

Added in API level 34
public Energy getEnergyFromFat ()

Returns
Energy energyFromFat in Energy unit. This value may be null.

getFolate

Added in API level 34
public Mass getFolate ()

Returns
Mass folate in Mass unit. This value may be null.

getFolicAcid

Added in API level 34
public Mass getFolicAcid ()

Returns
Mass folicAcid in Mass unit. This value may be null.

getIodine

Added in API level 34
public Mass getIodine ()

Returns
Mass iodine in Mass unit. This value may be null.

getIron

Added in API level 34
public Mass getIron ()

Returns
Mass iron in Mass unit. This value may be null.

getMagnesium

Added in API level 34
public Mass getMagnesium ()

Returns
Mass magnesium in Mass unit. This value may be null.

getManganese

Added in API level 34
public Mass getManganese ()

Returns
Mass manganese in Mass unit. This value may be null.

getMealName

Added in API level 34
public String getMealName ()

Returns
String the meal name. This value may be null.

getMolybdenum

Added in API level 34
public Mass getMolybdenum ()

Returns
Mass molybdenum in Mass unit. This value may be null.

getMonounsaturatedFat

Added in API level 34
public Mass getMonounsaturatedFat ()

Returns
Mass monounsaturatedFat in Mass unit. This value may be null.

getNiacin

Added in API level 34
public Mass getNiacin ()

Returns
Mass niacin in Mass unit. This value may be null.

getPantothenicAcid

Added in API level 34
public Mass getPantothenicAcid ()

Returns
Mass pantothenicAcid in Mass unit. This value may be null.

getPhosphorus

Added in API level 34
public Mass getPhosphorus ()

Returns
Mass phosphorus in Mass unit. This value may be null.

getPolyunsaturatedFat

Added in API level 34
public Mass getPolyunsaturatedFat ()

Returns
Mass polyunsaturatedFat in Mass unit. This value may be null.

getPotassium

Added in API level 34
public Mass getPotassium ()

Returns
Mass potassium This value may be null.

getProtein

Added in API level 34
public Mass getProtein ()

Returns
Mass protein in Mass unit. This value may be null.

getRiboflavin

Added in API level 34
public Mass getRiboflavin ()

Returns
Mass riboflavin in Mass unit. This value may be null.

getSaturatedFat

Added in API level 34
public Mass getSaturatedFat ()

Returns
Mass saturatedFat in Mass unit. This value may be null.

getSelenium

Added in API level 34
public Mass getSelenium ()

Returns
Mass selenium in Mass unit. This value may be null.

getSodium

Added in API level 34
public Mass getSodium ()

Returns
Mass sodium in Mass unit. This value may be null.

getSugar

Added in API level 34
public Mass getSugar ()

Returns
Mass sugar in Mass unit. This value may be null.

getThiamin

Added in API level 34
public Mass getThiamin ()

Returns
Mass thiamin This value may be null.

getTotalCarbohydrate

Added in API level 34
public Mass getTotalCarbohydrate ()

Returns
Mass totalCarbohydrate in Mass unit. This value may be null.

getTotalFat

Added in API level 34
public Mass getTotalFat ()

Returns
Mass totalFat in Mass unit. This value may be null.

getTransFat

Added in API level 34
public Mass getTransFat ()

Returns
Mass transFat in Mass unit. This value may be null.

getUnsaturatedFat

Added in API level 34
public Mass getUnsaturatedFat ()

Returns
Mass unsaturatedFat This value may be null.

getVitaminA

Added in API level 34
public Mass getVitaminA ()

Returns
Mass vitaminA in Mass unit. This value may be null.

getVitaminB12

Added in API level 34
public Mass getVitaminB12 ()

Returns
Mass vitaminB12 in Mass unit. This value may be null.

getVitaminB6

Added in API level 34
public Mass getVitaminB6 ()

Returns
Mass vitaminB6 in Mass unit. This value may be null.

getVitaminC

Added in API level 34
public Mass getVitaminC ()

Returns
Mass vitaminC in Mass unit. This value may be null.

getVitaminD

Added in API level 34
public Mass getVitaminD ()

Returns
Mass vitaminD in Mass unit. This value may be null.

getVitaminE

Added in API level 34
public Mass getVitaminE ()

Returns
Mass vitaminE in Mass unit. This value may be null.

getVitaminK

Added in API level 34
public Mass getVitaminK ()

Returns
Mass vitaminK in Mass unit. This value may be null.

getZinc

Added in API level 34
public Mass getZinc ()

Returns
Mass zinc in Mass unit. This value may be null.

hashCode

Added in API level 34
public int hashCode ()

Returns a hash code value for the object.

Returns
int a hash code value for this object.