Added in API level 34

NutritionRecord

class NutritionRecord : IntervalRecord
kotlin.Any
   ↳ 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

Builder class for NutritionRecord

Public methods
Boolean
equals(other: Any?)

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

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Energy?

Energy?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

String?

Int

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Mass?

Int

Inherited functions
Properties
static AggregationType<Mass!>

Metric identifier to get total biotin using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total caffeine using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total calcium using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total chloride using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total cholesterol using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total chromium using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total copper using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

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

static AggregationType<Energy!>

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

static AggregationType<Energy!>

Metric identifier to get total energy using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total folate using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

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

static AggregationType<Mass!>

Metric identifier to get total iodine using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total iron using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total magnesium using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total manganese using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total molybdenum using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

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

static AggregationType<Mass!>

Metric identifier to get total niacin using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

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

static AggregationType<Mass!>

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

static AggregationType<Mass!>

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

static AggregationType<Mass!>

Metric identifier to get total potassium using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total protein using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total riboflavin using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

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

static AggregationType<Mass!>

Metric identifier to get total selenium using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total sodium using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total sugar using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total thiamin using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total carbohydrate using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

Metric identifier to get total fat using aggregate APIs in HealthConnectManager

static AggregationType<Mass!>

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

static AggregationType<Mass!>

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

static AggregationType<Mass!>

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

static AggregationType<Mass!>

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

static AggregationType<Mass!>

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

static AggregationType<Mass!>

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

static AggregationType<Mass!>

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

static AggregationType<Mass!>

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

static AggregationType<Mass!>

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

static AggregationType<Mass!>

Metric identifier to get total Zinc using aggregate APIs in HealthConnectManager

Public methods

equals

Added in API level 34
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.
o the reference object with which to compare.
Return
Boolean true if this object is the same as the obj

getBiotin

Added in API level 34
fun getBiotin(): Mass?
Return
Mass? biotin in Mass unit. This value may be null.

getCaffeine

Added in API level 34
fun getCaffeine(): Mass?
Return
Mass? caffeine in Mass unit. This value may be null.

getCalcium

Added in API level 34
fun getCalcium(): Mass?
Return
Mass? calcium in Mass unit. This value may be null.

getChloride

Added in API level 34
fun getChloride(): Mass?
Return
Mass? chloride in Mass unit. This value may be null.

getCholesterol

Added in API level 34
fun getCholesterol(): Mass?
Return
Mass? cholesterol in Mass unit. This value may be null.

getChromium

Added in API level 34
fun getChromium(): Mass?
Return
Mass? chromium in Mass unit. This value may be null.

getCopper

Added in API level 34
fun getCopper(): Mass?
Return
Mass? copper in Mass unit. This value may be null.

getDietaryFiber

Added in API level 34
fun getDietaryFiber(): Mass?
Return
Mass? dietaryFiber in Mass unit. This value may be null.

getEnergy

Added in API level 34
fun getEnergy(): Energy?
Return
Energy? energy in Energy unit. This value may be null.

getEnergyFromFat

Added in API level 34
fun getEnergyFromFat(): Energy?
Return
Energy? energyFromFat in Energy unit. This value may be null.

getFolate

Added in API level 34
fun getFolate(): Mass?
Return
Mass? folate in Mass unit. This value may be null.

getFolicAcid

Added in API level 34
fun getFolicAcid(): Mass?
Return
Mass? folicAcid in Mass unit. This value may be null.

getIodine

Added in API level 34
fun getIodine(): Mass?
Return
Mass? iodine in Mass unit. This value may be null.

getIron

Added in API level 34
fun getIron(): Mass?
Return
Mass? iron in Mass unit. This value may be null.

getMagnesium

Added in API level 34
fun getMagnesium(): Mass?
Return
Mass? magnesium in Mass unit. This value may be null.

getManganese

Added in API level 34
fun getManganese(): Mass?
Return
Mass? manganese in Mass unit. This value may be null.

getMealName

Added in API level 34
fun getMealName(): String?
Return
String? the meal name. This value may be null.

getMolybdenum

Added in API level 34
fun getMolybdenum(): Mass?
Return
Mass? molybdenum in Mass unit. This value may be null.

getMonounsaturatedFat

Added in API level 34
fun getMonounsaturatedFat(): Mass?
Return
Mass? monounsaturatedFat in Mass unit. This value may be null.

getNiacin

Added in API level 34
fun getNiacin(): Mass?
Return
Mass? niacin in Mass unit. This value may be null.

getPantothenicAcid

Added in API level 34
fun getPantothenicAcid(): Mass?
Return
Mass? pantothenicAcid in Mass unit. This value may be null.

getPhosphorus

Added in API level 34
fun getPhosphorus(): Mass?
Return
Mass? phosphorus in Mass unit. This value may be null.

getPolyunsaturatedFat

Added in API level 34
fun getPolyunsaturatedFat(): Mass?
Return
Mass? polyunsaturatedFat in Mass unit. This value may be null.

getPotassium

Added in API level 34
fun getPotassium(): Mass?
Return
Mass? potassium This value may be null.

getProtein

Added in API level 34
fun getProtein(): Mass?
Return
Mass? protein in Mass unit. This value may be null.

getRiboflavin

Added in API level 34
fun getRiboflavin(): Mass?
Return
Mass? riboflavin in Mass unit. This value may be null.

getSaturatedFat

Added in API level 34
fun getSaturatedFat(): Mass?
Return
Mass? saturatedFat in Mass unit. This value may be null.

getSelenium

Added in API level 34
fun getSelenium(): Mass?
Return
Mass? selenium in Mass unit. This value may be null.

getSodium

Added in API level 34
fun getSodium(): Mass?
Return
Mass? sodium in Mass unit. This value may be null.

getSugar

Added in API level 34
fun getSugar(): Mass?
Return
Mass? sugar in Mass unit. This value may be null.

getThiamin

Added in API level 34
fun getThiamin(): Mass?
Return
Mass? thiamin This value may be null.

getTotalCarbohydrate

Added in API level 34
fun getTotalCarbohydrate(): Mass?
Return
Mass? totalCarbohydrate in Mass unit. This value may be null.

getTotalFat

Added in API level 34
fun getTotalFat(): Mass?
Return
Mass? totalFat in Mass unit. This value may be null.

getTransFat

Added in API level 34
fun getTransFat(): Mass?
Return
Mass? transFat in Mass unit. This value may be null.

getUnsaturatedFat

Added in API level 34
fun getUnsaturatedFat(): Mass?
Return
Mass? unsaturatedFat This value may be null.

getVitaminA

Added in API level 34
fun getVitaminA(): Mass?
Return
Mass? vitaminA in Mass unit. This value may be null.

getVitaminB12

Added in API level 34
fun getVitaminB12(): Mass?
Return
Mass? vitaminB12 in Mass unit. This value may be null.

getVitaminB6

Added in API level 34
fun getVitaminB6(): Mass?
Return
Mass? vitaminB6 in Mass unit. This value may be null.

getVitaminC

Added in API level 34
fun getVitaminC(): Mass?
Return
Mass? vitaminC in Mass unit. This value may be null.

getVitaminD

Added in API level 34
fun getVitaminD(): Mass?
Return
Mass? vitaminD in Mass unit. This value may be null.

getVitaminE

Added in API level 34
fun getVitaminE(): Mass?
Return
Mass? vitaminE in Mass unit. This value may be null.

getVitaminK

Added in API level 34
fun getVitaminK(): Mass?
Return
Mass? vitaminK in Mass unit. This value may be null.

getZinc

Added in API level 34
fun getZinc(): Mass?
Return
Mass? zinc in Mass unit. This value may be null.

hashCode

Added in API level 34
fun hashCode(): Int
Return
Int a hash code value for this object.

Properties

BIOTIN_TOTAL

Added in API level 34
static val BIOTIN_TOTAL: AggregationType<Mass!>

Metric identifier to get total biotin using aggregate APIs in HealthConnectManager

CAFFEINE_TOTAL

Added in API level 34
static val CAFFEINE_TOTAL: AggregationType<Mass!>

Metric identifier to get total caffeine using aggregate APIs in HealthConnectManager

CALCIUM_TOTAL

Added in API level 34
static val CALCIUM_TOTAL: AggregationType<Mass!>

Metric identifier to get total calcium using aggregate APIs in HealthConnectManager

CHLORIDE_TOTAL

Added in API level 34
static val CHLORIDE_TOTAL: AggregationType<Mass!>

Metric identifier to get total chloride using aggregate APIs in HealthConnectManager

CHOLESTEROL_TOTAL

Added in API level 34
static val CHOLESTEROL_TOTAL: AggregationType<Mass!>

Metric identifier to get total cholesterol using aggregate APIs in HealthConnectManager

CHROMIUM_TOTAL

Added in API level 34
static val CHROMIUM_TOTAL: AggregationType<Mass!>

Metric identifier to get total chromium using aggregate APIs in HealthConnectManager

COPPER_TOTAL

Added in API level 34
static val COPPER_TOTAL: AggregationType<Mass!>

Metric identifier to get total copper using aggregate APIs in HealthConnectManager

DIETARY_FIBER_TOTAL

Added in API level 34
static val DIETARY_FIBER_TOTAL: AggregationType<Mass!>

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

ENERGY_FROM_FAT_TOTAL

Added in API level 34
static val ENERGY_FROM_FAT_TOTAL: AggregationType<Energy!>

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

ENERGY_TOTAL

Added in API level 34
static val ENERGY_TOTAL: AggregationType<Energy!>

Metric identifier to get total energy using aggregate APIs in HealthConnectManager

FOLATE_TOTAL

Added in API level 34
static val FOLATE_TOTAL: AggregationType<Mass!>

Metric identifier to get total folate using aggregate APIs in HealthConnectManager

FOLIC_ACID_TOTAL

Added in API level 34
static val FOLIC_ACID_TOTAL: AggregationType<Mass!>

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

IODINE_TOTAL

Added in API level 34
static val IODINE_TOTAL: AggregationType<Mass!>

Metric identifier to get total iodine using aggregate APIs in HealthConnectManager

IRON_TOTAL

Added in API level 34
static val IRON_TOTAL: AggregationType<Mass!>

Metric identifier to get total iron using aggregate APIs in HealthConnectManager

MAGNESIUM_TOTAL

Added in API level 34
static val MAGNESIUM_TOTAL: AggregationType<Mass!>

Metric identifier to get total magnesium using aggregate APIs in HealthConnectManager

MANGANESE_TOTAL

Added in API level 34
static val MANGANESE_TOTAL: AggregationType<Mass!>

Metric identifier to get total manganese using aggregate APIs in HealthConnectManager

MOLYBDENUM_TOTAL

Added in API level 34
static val MOLYBDENUM_TOTAL: AggregationType<Mass!>

Metric identifier to get total molybdenum using aggregate APIs in HealthConnectManager

MONOUNSATURATED_FAT_TOTAL

Added in API level 34
static val MONOUNSATURATED_FAT_TOTAL: AggregationType<Mass!>

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

NIACIN_TOTAL

Added in API level 34
static val NIACIN_TOTAL: AggregationType<Mass!>

Metric identifier to get total niacin using aggregate APIs in HealthConnectManager

PANTOTHENIC_ACID_TOTAL

Added in API level 34
static val PANTOTHENIC_ACID_TOTAL: AggregationType<Mass!>

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

PHOSPHORUS_TOTAL

Added in API level 34
static val PHOSPHORUS_TOTAL: AggregationType<Mass!>

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

POLYUNSATURATED_FAT_TOTAL

Added in API level 34
static val POLYUNSATURATED_FAT_TOTAL: AggregationType<Mass!>

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

POTASSIUM_TOTAL

Added in API level 34
static val POTASSIUM_TOTAL: AggregationType<Mass!>

Metric identifier to get total potassium using aggregate APIs in HealthConnectManager

PROTEIN_TOTAL

Added in API level 34
static val PROTEIN_TOTAL: AggregationType<Mass!>

Metric identifier to get total protein using aggregate APIs in HealthConnectManager

RIBOFLAVIN_TOTAL

Added in API level 34
static val RIBOFLAVIN_TOTAL: AggregationType<Mass!>

Metric identifier to get total riboflavin using aggregate APIs in HealthConnectManager

SATURATED_FAT_TOTAL

Added in API level 34
static val SATURATED_FAT_TOTAL: AggregationType<Mass!>

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

SELENIUM_TOTAL

Added in API level 34
static val SELENIUM_TOTAL: AggregationType<Mass!>

Metric identifier to get total selenium using aggregate APIs in HealthConnectManager

SODIUM_TOTAL

Added in API level 34
static val SODIUM_TOTAL: AggregationType<Mass!>

Metric identifier to get total sodium using aggregate APIs in HealthConnectManager

SUGAR_TOTAL

Added in API level 34
static val SUGAR_TOTAL: AggregationType<Mass!>

Metric identifier to get total sugar using aggregate APIs in HealthConnectManager

THIAMIN_TOTAL

Added in API level 34
static val THIAMIN_TOTAL: AggregationType<Mass!>

Metric identifier to get total thiamin using aggregate APIs in HealthConnectManager

TOTAL_CARBOHYDRATE_TOTAL

Added in API level 34
static val TOTAL_CARBOHYDRATE_TOTAL: AggregationType<Mass!>

Metric identifier to get total carbohydrate using aggregate APIs in HealthConnectManager

TOTAL_FAT_TOTAL

Added in API level 34
static val TOTAL_FAT_TOTAL: AggregationType<Mass!>

Metric identifier to get total fat using aggregate APIs in HealthConnectManager

TRANS_FAT_TOTAL

static val TRANS_FAT_TOTAL: AggregationType<Mass!>

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

UNSATURATED_FAT_TOTAL

Added in API level 34
static val UNSATURATED_FAT_TOTAL: AggregationType<Mass!>

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

VITAMIN_A_TOTAL

Added in API level 34
static val VITAMIN_A_TOTAL: AggregationType<Mass!>

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

VITAMIN_B12_TOTAL

Added in API level 34
static val VITAMIN_B12_TOTAL: AggregationType<Mass!>

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

VITAMIN_B6_TOTAL

Added in API level 34
static val VITAMIN_B6_TOTAL: AggregationType<Mass!>

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

VITAMIN_C_TOTAL

Added in API level 34
static val VITAMIN_C_TOTAL: AggregationType<Mass!>

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

VITAMIN_D_TOTAL

Added in API level 34
static val VITAMIN_D_TOTAL: AggregationType<Mass!>

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

VITAMIN_E_TOTAL

Added in API level 34
static val VITAMIN_E_TOTAL: AggregationType<Mass!>

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

VITAMIN_K_TOTAL

Added in API level 34
static val VITAMIN_K_TOTAL: AggregationType<Mass!>

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

ZINC_TOTAL

Added in API level 34
static val ZINC_TOTAL: AggregationType<Mass!>

Metric identifier to get total Zinc using aggregate APIs in HealthConnectManager