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 |
Public methods | |
---|---|
Boolean |
Indicates whether some other object is "equal to" this one. |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Energy? | |
Energy? | |
Mass? | |
Mass? | |
Mass? | |
Mass? |
getIron() |
Mass? | |
Mass? | |
String? | |
Int | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? |
getSugar() |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? | |
Mass? |
getZinc() |
Int |
hashCode() |
Inherited functions | |
---|---|
Properties | |
---|---|
static AggregationType<Mass!> |
Metric identifier to get total biotin using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total caffeine using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total calcium using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total chloride using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total cholesterol using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total chromium using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total copper using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total dietary fibre using aggregate APIs in |
static AggregationType<Energy!> |
Metric identifier to get total energy from fat using aggregate APIs in |
static AggregationType<Energy!> |
Metric identifier to get total energy using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total folate using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total folic acid using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total iodine using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total iron using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total magnesium using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total manganese using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total molybdenum using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total monounsaturated fat using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total niacin using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total pantothenic acid fat using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total phosphorus fat using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total polyunsaturated fat using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total potassium using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total protein using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total riboflavin using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total saturated fat using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total selenium using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total sodium using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total sugar using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total thiamin using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total carbohydrate using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total fat using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total trans fat using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total unsaturated fat using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total Vitamin A using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total Vitamin B12 using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total Vitamin B6 using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total Vitamin C using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total Vitamin D using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total Vitamin E using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total Vitamin K using aggregate APIs in |
static AggregationType<Mass!> |
Metric identifier to get total Zinc using aggregate APIs in |
Public methods
equals
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
fun getBiotin(): Mass?
Return | |
---|---|
Mass? |
biotin in Mass unit. This value may be null . |
getCaffeine
fun getCaffeine(): Mass?
Return | |
---|---|
Mass? |
caffeine in Mass unit. This value may be null . |
getCalcium
fun getCalcium(): Mass?
Return | |
---|---|
Mass? |
calcium in Mass unit. This value may be null . |
getChloride
fun getChloride(): Mass?
Return | |
---|---|
Mass? |
chloride in Mass unit. This value may be null . |
getCholesterol
fun getCholesterol(): Mass?
Return | |
---|---|
Mass? |
cholesterol in Mass unit. This value may be null . |
getChromium
fun getChromium(): Mass?
Return | |
---|---|
Mass? |
chromium in Mass unit. This value may be null . |
getCopper
fun getCopper(): Mass?
Return | |
---|---|
Mass? |
copper in Mass unit. This value may be null . |
getDietaryFiber
fun getDietaryFiber(): Mass?
Return | |
---|---|
Mass? |
dietaryFiber in Mass unit. This value may be null . |
getEnergy
fun getEnergy(): Energy?
Return | |
---|---|
Energy? |
energy in Energy unit. This value may be null . |
getEnergyFromFat
fun getEnergyFromFat(): Energy?
Return | |
---|---|
Energy? |
energyFromFat in Energy unit. This value may be null . |
getFolate
fun getFolate(): Mass?
Return | |
---|---|
Mass? |
folate in Mass unit. This value may be null . |
getFolicAcid
fun getFolicAcid(): Mass?
Return | |
---|---|
Mass? |
folicAcid in Mass unit. This value may be null . |
getIodine
fun getIodine(): Mass?
Return | |
---|---|
Mass? |
iodine in Mass unit. This value may be null . |
getIron
fun getIron(): Mass?
Return | |
---|---|
Mass? |
iron in Mass unit. This value may be null . |
getMagnesium
fun getMagnesium(): Mass?
Return | |
---|---|
Mass? |
magnesium in Mass unit. This value may be null . |
getManganese
fun getManganese(): Mass?
Return | |
---|---|
Mass? |
manganese in Mass unit. This value may be null . |
getMealName
fun getMealName(): String?
Return | |
---|---|
String? |
the meal name. This value may be null . |
getMealType
fun getMealType(): Int
getMolybdenum
fun getMolybdenum(): Mass?
Return | |
---|---|
Mass? |
molybdenum in Mass unit. This value may be null . |
getMonounsaturatedFat
fun getMonounsaturatedFat(): Mass?
Return | |
---|---|
Mass? |
monounsaturatedFat in Mass unit. This value may be null . |
getNiacin
fun getNiacin(): Mass?
Return | |
---|---|
Mass? |
niacin in Mass unit. This value may be null . |
getPantothenicAcid
fun getPantothenicAcid(): Mass?
Return | |
---|---|
Mass? |
pantothenicAcid in Mass unit. This value may be null . |
getPhosphorus
fun getPhosphorus(): Mass?
Return | |
---|---|
Mass? |
phosphorus in Mass unit. This value may be null . |
getPolyunsaturatedFat
fun getPolyunsaturatedFat(): Mass?
Return | |
---|---|
Mass? |
polyunsaturatedFat in Mass unit. This value may be null . |
getPotassium
fun getPotassium(): Mass?
Return | |
---|---|
Mass? |
potassium This value may be null . |
getProtein
fun getProtein(): Mass?
Return | |
---|---|
Mass? |
protein in Mass unit. This value may be null . |
getRiboflavin
fun getRiboflavin(): Mass?
Return | |
---|---|
Mass? |
riboflavin in Mass unit. This value may be null . |
getSaturatedFat
fun getSaturatedFat(): Mass?
Return | |
---|---|
Mass? |
saturatedFat in Mass unit. This value may be null . |
getSelenium
fun getSelenium(): Mass?
Return | |
---|---|
Mass? |
selenium in Mass unit. This value may be null . |
getSodium
fun getSodium(): Mass?
Return | |
---|---|
Mass? |
sodium in Mass unit. This value may be null . |
getSugar
fun getSugar(): Mass?
Return | |
---|---|
Mass? |
sugar in Mass unit. This value may be null . |
getThiamin
fun getThiamin(): Mass?
Return | |
---|---|
Mass? |
thiamin This value may be null . |
getTotalCarbohydrate
fun getTotalCarbohydrate(): Mass?
Return | |
---|---|
Mass? |
totalCarbohydrate in Mass unit. This value may be null . |
getTotalFat
fun getTotalFat(): Mass?
Return | |
---|---|
Mass? |
totalFat in Mass unit. This value may be null . |
getTransFat
fun getTransFat(): Mass?
Return | |
---|---|
Mass? |
transFat in Mass unit. This value may be null . |
getUnsaturatedFat
fun getUnsaturatedFat(): Mass?
Return | |
---|---|
Mass? |
unsaturatedFat This value may be null . |
getVitaminA
fun getVitaminA(): Mass?
Return | |
---|---|
Mass? |
vitaminA in Mass unit. This value may be null . |
getVitaminB12
fun getVitaminB12(): Mass?
Return | |
---|---|
Mass? |
vitaminB12 in Mass unit. This value may be null . |
getVitaminB6
fun getVitaminB6(): Mass?
Return | |
---|---|
Mass? |
vitaminB6 in Mass unit. This value may be null . |
getVitaminC
fun getVitaminC(): Mass?
Return | |
---|---|
Mass? |
vitaminC in Mass unit. This value may be null . |
getVitaminD
fun getVitaminD(): Mass?
Return | |
---|---|
Mass? |
vitaminD in Mass unit. This value may be null . |
getVitaminE
fun getVitaminE(): Mass?
Return | |
---|---|
Mass? |
vitaminE in Mass unit. This value may be null . |
getVitaminK
fun getVitaminK(): Mass?
Return | |
---|---|
Mass? |
vitaminK in Mass unit. This value may be null . |
getZinc
fun getZinc(): Mass?
Return | |
---|---|
Mass? |
zinc in Mass unit. This value may be null . |
Properties
BIOTIN_TOTAL
static val BIOTIN_TOTAL: AggregationType<Mass!>
Metric identifier to get total biotin using aggregate APIs in HealthConnectManager
CAFFEINE_TOTAL
static val CAFFEINE_TOTAL: AggregationType<Mass!>
Metric identifier to get total caffeine using aggregate APIs in HealthConnectManager
CALCIUM_TOTAL
static val CALCIUM_TOTAL: AggregationType<Mass!>
Metric identifier to get total calcium using aggregate APIs in HealthConnectManager
CHLORIDE_TOTAL
static val CHLORIDE_TOTAL: AggregationType<Mass!>
Metric identifier to get total chloride using aggregate APIs in HealthConnectManager
CHOLESTEROL_TOTAL
static val CHOLESTEROL_TOTAL: AggregationType<Mass!>
Metric identifier to get total cholesterol using aggregate APIs in HealthConnectManager
CHROMIUM_TOTAL
static val CHROMIUM_TOTAL: AggregationType<Mass!>
Metric identifier to get total chromium using aggregate APIs in HealthConnectManager
COPPER_TOTAL
static val COPPER_TOTAL: AggregationType<Mass!>
Metric identifier to get total copper using aggregate APIs in HealthConnectManager
DIETARY_FIBER_TOTAL
static val DIETARY_FIBER_TOTAL: AggregationType<Mass!>
Metric identifier to get total dietary fibre using aggregate APIs in HealthConnectManager
ENERGY_FROM_FAT_TOTAL
static val ENERGY_FROM_FAT_TOTAL: AggregationType<Energy!>
Metric identifier to get total energy from fat using aggregate APIs in HealthConnectManager
ENERGY_TOTAL
static val ENERGY_TOTAL: AggregationType<Energy!>
Metric identifier to get total energy using aggregate APIs in HealthConnectManager
FOLATE_TOTAL
static val FOLATE_TOTAL: AggregationType<Mass!>
Metric identifier to get total folate using aggregate APIs in HealthConnectManager
FOLIC_ACID_TOTAL
static val FOLIC_ACID_TOTAL: AggregationType<Mass!>
Metric identifier to get total folic acid using aggregate APIs in HealthConnectManager
IODINE_TOTAL
static val IODINE_TOTAL: AggregationType<Mass!>
Metric identifier to get total iodine using aggregate APIs in HealthConnectManager
IRON_TOTAL
static val IRON_TOTAL: AggregationType<Mass!>
Metric identifier to get total iron using aggregate APIs in HealthConnectManager
MAGNESIUM_TOTAL
static val MAGNESIUM_TOTAL: AggregationType<Mass!>
Metric identifier to get total magnesium using aggregate APIs in HealthConnectManager
MANGANESE_TOTAL
static val MANGANESE_TOTAL: AggregationType<Mass!>
Metric identifier to get total manganese using aggregate APIs in HealthConnectManager
MOLYBDENUM_TOTAL
static val MOLYBDENUM_TOTAL: AggregationType<Mass!>
Metric identifier to get total molybdenum using aggregate APIs in HealthConnectManager
MONOUNSATURATED_FAT_TOTAL
static val MONOUNSATURATED_FAT_TOTAL: AggregationType<Mass!>
Metric identifier to get total monounsaturated fat using aggregate APIs in HealthConnectManager
NIACIN_TOTAL
static val NIACIN_TOTAL: AggregationType<Mass!>
Metric identifier to get total niacin using aggregate APIs in HealthConnectManager
PANTOTHENIC_ACID_TOTAL
static val PANTOTHENIC_ACID_TOTAL: AggregationType<Mass!>
Metric identifier to get total pantothenic acid fat using aggregate APIs in HealthConnectManager
PHOSPHORUS_TOTAL
static val PHOSPHORUS_TOTAL: AggregationType<Mass!>
Metric identifier to get total phosphorus fat using aggregate APIs in HealthConnectManager
POLYUNSATURATED_FAT_TOTAL
static val POLYUNSATURATED_FAT_TOTAL: AggregationType<Mass!>
Metric identifier to get total polyunsaturated fat using aggregate APIs in HealthConnectManager
POTASSIUM_TOTAL
static val POTASSIUM_TOTAL: AggregationType<Mass!>
Metric identifier to get total potassium using aggregate APIs in HealthConnectManager
PROTEIN_TOTAL
static val PROTEIN_TOTAL: AggregationType<Mass!>
Metric identifier to get total protein using aggregate APIs in HealthConnectManager
RIBOFLAVIN_TOTAL
static val RIBOFLAVIN_TOTAL: AggregationType<Mass!>
Metric identifier to get total riboflavin using aggregate APIs in HealthConnectManager
SATURATED_FAT_TOTAL
static val SATURATED_FAT_TOTAL: AggregationType<Mass!>
Metric identifier to get total saturated fat using aggregate APIs in HealthConnectManager
SELENIUM_TOTAL
static val SELENIUM_TOTAL: AggregationType<Mass!>
Metric identifier to get total selenium using aggregate APIs in HealthConnectManager
SODIUM_TOTAL
static val SODIUM_TOTAL: AggregationType<Mass!>
Metric identifier to get total sodium using aggregate APIs in HealthConnectManager
SUGAR_TOTAL
static val SUGAR_TOTAL: AggregationType<Mass!>
Metric identifier to get total sugar using aggregate APIs in HealthConnectManager
THIAMIN_TOTAL
static val THIAMIN_TOTAL: AggregationType<Mass!>
Metric identifier to get total thiamin using aggregate APIs in HealthConnectManager
TOTAL_CARBOHYDRATE_TOTAL
static val TOTAL_CARBOHYDRATE_TOTAL: AggregationType<Mass!>
Metric identifier to get total carbohydrate using aggregate APIs in HealthConnectManager
TOTAL_FAT_TOTAL
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
static val UNSATURATED_FAT_TOTAL: AggregationType<Mass!>
Metric identifier to get total unsaturated fat using aggregate APIs in HealthConnectManager
VITAMIN_A_TOTAL
static val VITAMIN_A_TOTAL: AggregationType<Mass!>
Metric identifier to get total Vitamin A using aggregate APIs in HealthConnectManager
VITAMIN_B12_TOTAL
static val VITAMIN_B12_TOTAL: AggregationType<Mass!>
Metric identifier to get total Vitamin B12 using aggregate APIs in HealthConnectManager
VITAMIN_B6_TOTAL
static val VITAMIN_B6_TOTAL: AggregationType<Mass!>
Metric identifier to get total Vitamin B6 using aggregate APIs in HealthConnectManager
VITAMIN_C_TOTAL
static val VITAMIN_C_TOTAL: AggregationType<Mass!>
Metric identifier to get total Vitamin C using aggregate APIs in HealthConnectManager
VITAMIN_D_TOTAL
static val VITAMIN_D_TOTAL: AggregationType<Mass!>
Metric identifier to get total Vitamin D using aggregate APIs in HealthConnectManager
VITAMIN_E_TOTAL
static val VITAMIN_E_TOTAL: AggregationType<Mass!>
Metric identifier to get total Vitamin E using aggregate APIs in HealthConnectManager
VITAMIN_K_TOTAL
static val VITAMIN_K_TOTAL: AggregationType<Mass!>
Metric identifier to get total Vitamin K using aggregate APIs in HealthConnectManager
ZINC_TOTAL
static val ZINC_TOTAL: AggregationType<Mass!>
Metric identifier to get total Zinc using aggregate APIs in HealthConnectManager