Stay organized with collections
Save and categorize content based on your preferences.
MealType
class MealType
Identifier for the meal type.
Summary
Constants |
static Int |
Use this for the first meal of the day, usually the morning meal.
|
static Int |
Use this for last meal of the day, usually the evening meal.
|
static Int |
Use this for the noon meal.
|
static Int |
Any meal outside of the usual three meals per day.
|
static Int |
|
Constants
MEAL_TYPE_BREAKFAST
static val MEAL_TYPE_BREAKFAST: Int
Use this for the first meal of the day, usually the morning meal.
Value: 1
MEAL_TYPE_DINNER
static val MEAL_TYPE_DINNER: Int
Use this for last meal of the day, usually the evening meal.
Value: 3
MEAL_TYPE_LUNCH
static val MEAL_TYPE_LUNCH: Int
Use this for the noon meal.
Value: 2
MEAL_TYPE_SNACK
static val MEAL_TYPE_SNACK: Int
Any meal outside of the usual three meals per day.
Value: 4
MEAL_TYPE_UNKNOWN
static val MEAL_TYPE_UNKNOWN: Int
Value: 0
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# MealType\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMealType\n========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/health/connect/datatypes/MealType \"View this page in Java\") \n\n```\nclass MealType\n```\n\n|---|------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.health.connect.datatypes.MealType](#) |\n\nIdentifier for the meal type.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [MEAL_TYPE_BREAKFAST](#MEAL_TYPE_BREAKFAST:kotlin.Int) Use this for the first meal of the day, usually the morning meal. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [MEAL_TYPE_DINNER](#MEAL_TYPE_DINNER:kotlin.Int) Use this for last meal of the day, usually the evening meal. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [MEAL_TYPE_LUNCH](#MEAL_TYPE_LUNCH:kotlin.Int) Use this for the noon meal. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [MEAL_TYPE_SNACK](#MEAL_TYPE_SNACK:kotlin.Int) Any meal outside of the usual three meals per day. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [MEAL_TYPE_UNKNOWN](#MEAL_TYPE_UNKNOWN:kotlin.Int) \u003cbr /\u003e |\n\nConstants\n---------\n\n### MEAL_TYPE_BREAKFAST\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val MEAL_TYPE_BREAKFAST: Int\n```\n\nUse this for the first meal of the day, usually the morning meal. \n\n Value: 1\n\n### MEAL_TYPE_DINNER\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val MEAL_TYPE_DINNER: Int\n```\n\nUse this for last meal of the day, usually the evening meal. \n\n Value: 3\n\n### MEAL_TYPE_LUNCH\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val MEAL_TYPE_LUNCH: Int\n```\n\nUse this for the noon meal. \n\n Value: 2\n\n### MEAL_TYPE_SNACK\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val MEAL_TYPE_SNACK: Int\n```\n\nAny meal outside of the usual three meals per day. \n\n Value: 4\n\n### MEAL_TYPE_UNKNOWN\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val MEAL_TYPE_UNKNOWN: Int\n``` \n\n Value: 0"]]