ประเภทข้อมูลโภชนาการ
ประเภทข้อมูลสำหรับข้อมูลโภชนาการ
ปริมาณน้ำที่ดื่ม
จุดข้อมูลแต่ละจุดแสดงปริมาณน้ำที่ผู้ใช้ดื่มในเครื่องดื่ม 1 แก้ว
ชื่อ com.google.hydration
ขอบเขตของสิทธิ์ OAuth
https://www.googleapis.com/auth/fitness.nutrition.read
https://www.googleapis.com/auth/fitness.nutrition.write
ช่อง (รูปแบบ - หน่วย)
ระดับเสียง (float
- ลิตร)
ปริมาณน้ำที่ใช้
ชื่อ com.google.hydration
ออบเจ็กต์ประเภทข้อมูล TYPE_HYDRATION
ช่อง (รูปแบบ - หน่วย)
FIELD_VOLUME (float
—ลิตร)
ปริมาณของเหลวที่ใช้
โภชนาการ
จุดข้อมูลแต่ละจุดแสดงสารอาหารที่บริโภคเป็นส่วนหนึ่งของมื้ออาหาร
หรือรายการอาหาร จุดข้อมูลประกอบด้วยช่องหลายช่อง ฟิลด์สารอาหารคือ
ต้องระบุ และต้องระบุประเภทอาหารและช่องรายการอาหารอย่างใดอย่างหนึ่งหรือทั้ง 2 ช่อง
หมายเหตุ: หากทราบเวลารับประทานอาหารที่แน่นอน ให้เพิ่มเวลาเริ่มต้นและเวลาสิ้นสุดที่เจาะจงเหล่านี้ ถ้า
ไม่ใช่ ให้เพิ่มเวลาเริ่มต้นและเวลาสิ้นสุดของช่วงเวลาทั่วไปที่รับประทานอาหาร
ชื่อ com.google.nutrition
ขอบเขตของสิทธิ์ OAuth
https://www.googleapis.com/auth/fitness.nutrition.read
https://www.googleapis.com/auth/fitness.nutrition.write
ช่อง (รูปแบบ - หน่วย)
ประเภทอาหาร (int
- enum) (ช่องที่ไม่บังคับ)
มื้ออาหารที่ผู้ใช้กิน
ค่าที่ยอมรับ
"intVal": 1 // Unknown
"intVal": 2 // Breakfast
"intVal": 3 // Lunch
"intVal": 4 // Dinner
"intVal": 5 // Snack
รายการอาหาร (string
- ไม่มี)
รายการอาหารที่เฉพาะเจาะจงสำหรับรายการอาหาร เช่น "กล้วย" หรือ "โจ๊ก"
สารอาหาร (Map<String>
—แคลอรี/กรัม)
รายละเอียดทางโภชนาการของรายการอาหารที่กิน
ค่าที่ยอมรับ
"key": "calories" // Calories in kcal
"key": "fat.total" // Total fat in grams
"key": "fat.saturated" // Saturated fat in grams
"key": "fat.unsaturated" // Unsaturated fat in grams
"key": "fat.polyunsaturated" // Polyunsaturated fat in grams
"key": "fat.monounsaturated" // Monounsaturated fat in grams
"key": "fat.trans" // Trans fat in grams
"key": "cholesterol" // Cholesterol in milligrams
"key": "sodium" // Sodium in milligrams
"key": "potassium" // Potassium in milligrams
"key": "carbs.total" // Total carbohydrates in grams
"key": "dietary_fiber" // Dietary fiber in grams
"key": "sugar" // Amount of sugar in grams
"key": "protein" // Protein amount in grams
ชื่อ com.google.nutrition
ออบเจ็กต์ประเภทข้อมูล TYPE_NUTRITION
ช่อง (รูปแบบ - หน่วย)
FIELD_MEAL_TYPE (int
- enum) (ช่องที่ไม่บังคับ)
มื้ออาหารที่ผู้ใช้กิน
ค่าที่ยอมรับ
MEAL_TYPE_UNKNOWN // Unknown
MEAL_TYPE_BREAKFAST // Breakfast
MEAL_TYPE_LUNCH // Lunch
MEAL_TYPE_DINNER // Dinner
MEAL_TYPE_SNACK // Snack
FIELD_FOOD_ITEM (string
— ข้อความรูปแบบอิสระ)
คำอธิบายอาหารสำหรับการเข้าร่วม เช่น "กล้วย" หรือ "โจ๊ก"
FIELD_NUTRIENTS (Map<String>
—กิโลแคลอรี/กรัม/มิลลิกรัม)
รายละเอียดทางโภชนาการของรายการอาหารที่กิน
ค่าที่ยอมรับ
NUTRIENT_CALORIES // Calories in kcal
NUTRIENT_TOTAL_FAT // Total fat in grams
NUTRIENT_SATURATED_FAT // Saturated fat in grams
NUTRIENT_UNSATURATED_FAT // Unsaturated fat in grams
NUTRIENT_POLYUNSATURATED_FAT // Polyunsaturated fat in grams
NUTRIENT_MONOUNSATURATED_FAT // Monounsaturated fat in grams
NUTRIENT_TRANS_FAT // Trans fat in grams
NUTRIENT_CHOLESTEROL // Cholesterol in milligrams
NUTRIENT_SODIUM // Sodium in milligrams
NUTRIENT_POTASSIUM // Potassium in milligrams
NUTRIENT_TOTAL_CARBS // Total carbohydrates in grams
NUTRIENT_DIETARY_FIBER // Dietary fiber in grams
NUTRIENT_SUGAR // Amount of sugar in grams
NUTRIENT_PROTEIN // Protein amount in grams
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-22 UTC
[null,null,["อัปเดตล่าสุด 2024-08-22 UTC"],[[["Hydration data represents the volume of water consumed in a single drink, measured in liters."],["Nutrition data includes the nutritional breakdown of food items and meals, with fields for meal type, food item, and nutrients."],["Data can be accessed using REST APIs or Android, requiring specific OAuth permissions for read and write access."],["Nutrient information is recorded in calories, grams, or milligrams, covering macronutrients like fat, carbohydrates, and protein, along with micronutrients like sodium and potassium."]]],[]]