com.samsung.android.sdk.healthdata
Interface HealthConstants.Nutrition
-
- All Superinterfaces:
- HealthConstants.Common, HealthConstants.DiscreteMeasurement
- Enclosing class:
- HealthConstants
public static interface HealthConstants.Nutrition extends HealthConstants.DiscreteMeasurement
This interface defines nutrition user intakes.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.
Nutirition data has the following properties.
See more common properties by spreading this section out.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.4.0
-
-
Field Summary
Fields Modifier and Type Field and Description static String
CALCIUM
Calcium amount in percent.static String
CALORIE
Calories in kilocalories.static String
CARBOHYDRATE
Carbohydrate amount in grams.static String
CHOLESTEROL
Cholesterol amount in milligrams.static String
DIETARY_FIBER
Dietary fiber amount in grams.static String
HEALTH_DATA_TYPE
Data type name for nutrition.static String
IRON
Iron amount in percent.static String
MEAL_TYPE
Meal type.static int
MEAL_TYPE_AFTERNOON_SNACK
Meal type for afternoon snack.static int
MEAL_TYPE_BREAKFAST
Meal type for breakfast.static int
MEAL_TYPE_DINNER
Meal type for dinner.static int
MEAL_TYPE_EVENING_SNACK
Meal type for evening snack.static int
MEAL_TYPE_LUNCH
Meal type for lunch.static int
MEAL_TYPE_MORNING_SNACK
Meal type for morning snack.static String
MONOSATURATED_FAT
Monounsaturated fat amount in grams.static String
POLYSATURATED_FAT
Polyunsaturated fat amount in grams.static String
POTASSIUM
Potassium amount in milligrams.static String
PROTEIN
Protein amount in grams.static String
SATURATED_FAT
Saturated fat amount in grams.static String
SODIUM
Sodium amount in milligrams.static String
SUGAR
Sugar or glucose amount in grams.static String
TITLE
Nutrition intake title.static String
TOTAL_FAT
Total fat amount in grams.static String
TRANS_FAT
Trans fat amount in grams.static String
VITAMIN_A
Vitamin A amount in percent.static String
VITAMIN_C
Vitamin C amount in percent.-
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
-
MEAL_TYPE
static final String MEAL_TYPE
Meal type.- Mandatory
- Type:
int
- Available values: one of the following values
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
MEAL_TYPE_BREAKFAST
static final int MEAL_TYPE_BREAKFAST
Meal type for breakfast.
Its constant value is100001
.- Since:
- 1.4.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_LUNCH
static final int MEAL_TYPE_LUNCH
Meal type for lunch.
Its constant value is100002
.- Since:
- 1.4.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_DINNER
static final int MEAL_TYPE_DINNER
Meal type for dinner.
Its constant value is100003
.- Since:
- 1.4.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_MORNING_SNACK
static final int MEAL_TYPE_MORNING_SNACK
Meal type for morning snack.
Its constant value is100004
.- Since:
- 1.4.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_AFTERNOON_SNACK
static final int MEAL_TYPE_AFTERNOON_SNACK
Meal type for afternoon snack.
Its constant value is100005
.- Since:
- 1.4.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
MEAL_TYPE_EVENING_SNACK
static final int MEAL_TYPE_EVENING_SNACK
Meal type for evening snack.
Its constant value is100006
.- Since:
- 1.4.0
- See Also:
MEAL_TYPE
, Constant Field Values
-
CALORIE
static final String CALORIE
Calories in kilocalories.- Mandatory
- Type:
float
- Value range: 0 ~ 99999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
TITLE
static final String TITLE
Nutrition intake title.- Optional
- Type:
String
- Value length: 0 ~ 255
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
TOTAL_FAT
static final String TOTAL_FAT
Total fat amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
SATURATED_FAT
static final String SATURATED_FAT
Saturated fat amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
POLYSATURATED_FAT
static final String POLYSATURATED_FAT
Polyunsaturated fat amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
MONOSATURATED_FAT
static final String MONOSATURATED_FAT
Monounsaturated fat amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
TRANS_FAT
static final String TRANS_FAT
Trans fat amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
CARBOHYDRATE
static final String CARBOHYDRATE
Carbohydrate amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
DIETARY_FIBER
static final String DIETARY_FIBER
Dietary fiber amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
SUGAR
static final String SUGAR
Sugar or glucose amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
PROTEIN
static final String PROTEIN
Protein amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
CHOLESTEROL
static final String CHOLESTEROL
Cholesterol amount in milligrams.- Optional
- Type:
float
- Value range: 0 ~ 10000
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
SODIUM
static final String SODIUM
Sodium amount in milligrams.- Optional
- Type:
float
- Value range: 0 ~ 10000
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
POTASSIUM
static final String POTASSIUM
Potassium amount in milligrams.- Optional
- Type:
float
- Value range: 0 ~ 10000
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
VITAMIN_A
static final String VITAMIN_A
Vitamin A amount in percent.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
VITAMIN_C
static final String VITAMIN_C
Vitamin C amount in percent.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
CALCIUM
static final String CALCIUM
Calcium amount in percent.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
IRON
static final String IRON
Iron amount in percent.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
HEALTH_DATA_TYPE
static final String HEALTH_DATA_TYPE
Data type name for nutrition.
Use"com.samsung.health.nutrition"
to add permission to the manifest file.- Since:
- 1.4.0
- See Also:
- Constant Field Values
-
-