com.samsung.android.sdk.healthdata
Interface HealthConstants.FoodIntake
-
- All Superinterfaces:
- HealthConstants.Common, HealthConstants.DiscreteMeasurement
- Enclosing class:
- HealthConstants
Deprecated.UseHealthConstants.Nutrition
instead of it.
This data type will be removed. Do not use it any more.
public static interface HealthConstants.FoodIntake extends HealthConstants.DiscreteMeasurement
This interface defines food intake data of the user.Properties of the following extending interfaces are available for this data type.
Properties
Properties of the following extending interfaces are available for this data type.
Food intake data has the following properties.
See more common properties by spreading this section out.Property name Description HealthConstants.FoodIntake.DEVICE_UUID [Mandatory]
Device identifier which provides the health dataHealthConstants.FoodIntake.START_TIME [Mandatory]
UTC milliseconds when the measurement is startedHealthConstants.FoodIntake.TIME_OFFSET [Mandatory]
Time offset in milliseconds which considers the time zone and daylight saving timeHealthConstants.FoodIntake.CALORIE [Mandatory]
Total calories of the mealHealthConstants.FoodIntake.AMOUNT Count of food intake HealthConstants.FoodIntake.UNIT Unit used to describe the meal quantity HealthConstants.FoodIntake.NAME Name given to the meal HealthConstants.FoodIntake.MEAL_TYPE Meal type HealthConstants.FoodIntake.COMMENT Comment HealthConstants.FoodIntake.CUSTOM Custom info which is formatted with JSON and compressed data Data Permission
The user's consent is required to read or write this data type. HealthPermissionManager.requestPermissions() displays a data permission UI to the user.
See Permission Manager and request data permission.- Since:
- 1.0.0
- See Also:
HealthConstants.Nutrition
-
-
Field Summary
Fields Modifier and Type Field and Description static String
AMOUNT
Deprecated.Count of food intake.static String
CALORIE
Deprecated.Total calories of the meal in kilocalories.static String
COMMENT
Deprecated.Comment for data.static String
FOOD_INFO_ID
Deprecated.Food information ID.static String
HEALTH_DATA_TYPE
Deprecated.Data type name for food intake.static String
MEAL_TYPE
Deprecated.Meal type.static int
MEAL_TYPE_AFTERNOON_SNACK
Deprecated.Meal type for afternoon snack.static int
MEAL_TYPE_BREAKFAST
Deprecated.Meal type for breakfast.static int
MEAL_TYPE_DINNER
Deprecated.Meal type for dinner.static int
MEAL_TYPE_EVENING_SNACK
Deprecated.Meal type for evening snack.static int
MEAL_TYPE_LUNCH
Deprecated.Meal type for lunch.static int
MEAL_TYPE_MORNING_SNACK
Deprecated.Meal type for morning snack.static String
NAME
Deprecated.Name given to the meal.static String
UNIT
Deprecated.Unit used to describe the meal quantity.static String
UNIT_TYPE_DEFAULT
Deprecated.The default serving unit.static String
UNIT_TYPE_GRAM
Deprecated.Gram.static String
UNIT_TYPE_KILOCALORIE
Deprecated.Kilocalorie.static String
UNIT_TYPE_NOT_DEFINED
Deprecated.Not defined.static String
UNIT_TYPE_OUNCE
Deprecated.Ounce.-
Fields inherited from interface com.samsung.android.sdk.healthdata.HealthConstants.DiscreteMeasurement
START_TIME, TIME_OFFSET
-
Fields inherited from interface com.samsung.android.sdk.healthdata.HealthConstants.Common
CREATE_TIME, CUSTOM, DEVICE_UUID, PACKAGE_NAME, UPDATE_TIME, UUID
-
-
-
-
Field Detail
-
FOOD_INFO_ID
static final String FOOD_INFO_ID
Deprecated.Food information ID.- Optional
- Type:
String
- Value length: 10 ~ 32
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
AMOUNT
static final String AMOUNT
Deprecated.Count of food intake. If the user has two apples,AMOUNT
is2
.- Optional
- Type:
float
- Value range: 0 ~ 99999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
CALORIE
static final String CALORIE
Deprecated.Total calories of the meal in kilocalories.- Mandatory
- Type:
float
- Value range: 0 ~ 99999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
UNIT
static final String UNIT
Deprecated.Unit used to describe the meal quantity.- Optional
- Type:
String
- Available values: one of the following values as text
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
UNIT_TYPE_DEFAULT
static final String UNIT_TYPE_DEFAULT
Deprecated.The default serving unit.- Since:
- 1.0.0
- See Also:
UNIT
, Constant Field Values
-
UNIT_TYPE_GRAM
static final String UNIT_TYPE_GRAM
Deprecated.Gram.- Since:
- 1.0.0
- See Also:
UNIT
, Constant Field Values
-
UNIT_TYPE_OUNCE
static final String UNIT_TYPE_OUNCE
Deprecated.Ounce.- Since:
- 1.0.0
- See Also:
UNIT
, Constant Field Values
-
UNIT_TYPE_KILOCALORIE
static final String UNIT_TYPE_KILOCALORIE
Deprecated.Kilocalorie.- Since:
- 1.0.0
- See Also:
UNIT
, Constant Field Values
-
UNIT_TYPE_NOT_DEFINED
static final String UNIT_TYPE_NOT_DEFINED
Deprecated.Not defined.- Since:
- 1.0.0
- See Also:
UNIT
, Constant Field Values
-
NAME
static final String NAME
Deprecated.Name given to the meal.- Optional
- Type:
String
- Value length: 0 ~ 255
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
MEAL_TYPE
static final String MEAL_TYPE
Deprecated.Meal type. If it is not set, your data is not shown on Samsung Health.- Optional
- Type:
int
- Available values: one of the following values
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
MEAL_TYPE_BREAKFAST
static final int MEAL_TYPE_BREAKFAST
Deprecated.Meal type for breakfast.- Since:
- 1.0.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_LUNCH
static final int MEAL_TYPE_LUNCH
Deprecated.Meal type for lunch.- Since:
- 1.0.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_DINNER
static final int MEAL_TYPE_DINNER
Deprecated.Meal type for dinner.- Since:
- 1.0.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_MORNING_SNACK
static final int MEAL_TYPE_MORNING_SNACK
Deprecated.Meal type for morning snack.- Since:
- 1.0.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_AFTERNOON_SNACK
static final int MEAL_TYPE_AFTERNOON_SNACK
Deprecated.Meal type for afternoon snack.- Since:
- 1.0.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_EVENING_SNACK
static final int MEAL_TYPE_EVENING_SNACK
Deprecated.Meal type for evening snack.- Since:
- 1.0.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
COMMENT
static final String COMMENT
Deprecated.Comment for data.- Optional
- Type:
String
- Value length: 0 ~ 255
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
HEALTH_DATA_TYPE
static final String HEALTH_DATA_TYPE
Deprecated.Data type name for food intake.
Use"com.samsung.health.food_intake"
to add permission to the manifest file.- See Also:
- Constant Field Values
-
-