com.samsung.android.sdk.healthdata
Interface HealthConstants.FoodInfo
-
- All Superinterfaces:
- HealthConstants.Common
- 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.FoodInfo extends HealthConstants.Common
This interface defines food info that indicatesHealthConstants.FoodIntake
's nutritional information.Readable
FoodInfo
data through this interface is different with the food's search result on the Samsung Health's food tracker.
Linked food info data to the saved food intake data can be retrieved only.Properties
Properties of the following extending interfaces are available for this data type.
Food info 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.0.0
- See Also:
HealthConstants.Nutrition
-
-
Field Summary
Fields Modifier and Type Field and Description static String
CALCIUM
Deprecated.Calcium amount in percent.static String
CALORIE
Deprecated.Calories in kilocalories.static String
CARBOHYDRATE
Deprecated.Carbohydrate amount in grams.static String
CHOLESTEROL
Deprecated.Cholesterol amount in milligrams.static String
DEFAULT_NUMBER_OF_SERVING_UNIT
Deprecated.Default number of the served food.static String
DESCRIPTION
Deprecated.Description of the food.static String
DIETARY_FIBER
Deprecated.Dietary fiber amount in grams.static String
HEALTH_DATA_TYPE
Deprecated.Data type name for food information.static String
INFO_PROVIDER
Deprecated.Provider name of food information.static String
IRON
Deprecated.Iron amount in percent.static String
METRIC_SERVING_AMOUNT
Deprecated.Amount of the food served.static String
METRIC_SERVING_UNIT
Deprecated.Unit name for the food quantity to be measured.static String
MONOSATURATED_FAT
Deprecated.Monounsaturated fat amount in grams.static String
NAME
Deprecated.Food name.static String
POLYSATURATED_FAT
Deprecated.Polyunsaturated fat amount in grams.static String
POTASSIUM
Deprecated.Potassium amount in milligrams.static String
PROTEIN
Deprecated.Protein amount in grams.static String
PROVIDER_FOOD_ID
Deprecated.Food ID that is unique in the sameINFO_PROVIDER
.static String
SATURATED_FAT
Deprecated.Saturated fat amount in grams.static String
SERVING_DESCRIPTION
Deprecated.Description of serving content in the food.static String
SODIUM
Deprecated.Sodium amount in milligrams.static String
SUGAR
Deprecated.Sugar or glucose amount in grams.static String
TOTAL_FAT
Deprecated.Total fat amount in grams.static String
TRANS_FAT
Deprecated.Trans fat amount in grams.static String
UNIT_COUNT_PER_CALORIE
Deprecated.Number of unit in one kilocalorie.static String
VITAMIN_A
Deprecated.Vitamin A amount in percent.static String
VITAMIN_C
Deprecated.Vitamin C amount in percent.-
Fields inherited from interface com.samsung.android.sdk.healthdata.HealthConstants.Common
CREATE_TIME, CUSTOM, DEVICE_UUID, PACKAGE_NAME, UPDATE_TIME, UUID
-
-
-
-
Field Detail
-
PROVIDER_FOOD_ID
static final String PROVIDER_FOOD_ID
Deprecated.- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
INFO_PROVIDER
static final String INFO_PROVIDER
Deprecated.Provider name of food information.- Optional
- Type:
String
- Value length: 1 ~ 255
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
NAME
static final String NAME
Deprecated.Food name.- Mandatory
- Type:
String
- Value length: 0 ~ 255
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
CALORIE
static final String CALORIE
Deprecated.Calories in kilocalories.- Mandatory
- Type:
float
- Value range: 0 ~ 99999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
DESCRIPTION
static final String DESCRIPTION
Deprecated.Description of the food.- Optional
- Type:
String
- Value length: 0 ~ 255
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
METRIC_SERVING_AMOUNT
static final String METRIC_SERVING_AMOUNT
Deprecated.Amount of the food served. In case of 300 grams for an apple, itsMETRIC_SERVING_AMOUNT
is300
and itsMETRIC_SERVING_UNIT
is "g".- Optional
- Type:
int
- Value range: 0 and above
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
METRIC_SERVING_UNIT
static final String METRIC_SERVING_UNIT
Deprecated.Unit name for the food quantity to be measured.- Optional
- Type:
String
- Available values: one of the following values as text
- "g"
- "ml"
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
TOTAL_FAT
static final String TOTAL_FAT
Deprecated.Total fat amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
SATURATED_FAT
static final String SATURATED_FAT
Deprecated.Saturated fat amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
POLYSATURATED_FAT
static final String POLYSATURATED_FAT
Deprecated.Polyunsaturated fat amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
MONOSATURATED_FAT
static final String MONOSATURATED_FAT
Deprecated.Monounsaturated fat amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
TRANS_FAT
static final String TRANS_FAT
Deprecated.Trans fat amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
CARBOHYDRATE
static final String CARBOHYDRATE
Deprecated.Carbohydrate amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
DIETARY_FIBER
static final String DIETARY_FIBER
Deprecated.Dietary fiber amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
SUGAR
static final String SUGAR
Deprecated.Sugar or glucose amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
PROTEIN
static final String PROTEIN
Deprecated.Protein amount in grams.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
UNIT_COUNT_PER_CALORIE
static final String UNIT_COUNT_PER_CALORIE
Deprecated.Number of unit in one kilocalorie.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
CHOLESTEROL
static final String CHOLESTEROL
Deprecated.Cholesterol amount in milligrams.- Optional
- Type:
float
- Value range: 0 ~ 10000
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
SODIUM
static final String SODIUM
Deprecated.Sodium amount in milligrams.- Optional
- Type:
float
- Value range: 0 ~ 10000
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
POTASSIUM
static final String POTASSIUM
Deprecated.Potassium amount in milligrams.- Optional
- Type:
float
- Value range: 0 ~ 10000
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
VITAMIN_A
static final String VITAMIN_A
Deprecated.Vitamin A amount in percent.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
VITAMIN_C
static final String VITAMIN_C
Deprecated.Vitamin C amount in percent.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
CALCIUM
static final String CALCIUM
Deprecated.Calcium amount in percent.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
IRON
static final String IRON
Deprecated.Iron amount in percent.- Optional
- Type:
float
- Value range: 0 ~ 9999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
SERVING_DESCRIPTION
static final String SERVING_DESCRIPTION
Deprecated.Description of serving content in the food. E.g. 200 grams per one meal.- Optional
- Type:
String
- Value length: 0 ~ 255
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
DEFAULT_NUMBER_OF_SERVING_UNIT
static final String DEFAULT_NUMBER_OF_SERVING_UNIT
Deprecated.Default number of the served food.- Optional
- Type:
int
- Value range: 0 ~ 9999
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
HEALTH_DATA_TYPE
static final String HEALTH_DATA_TYPE
Deprecated.Data type name for food information.
Use"com.samsung.health.food_info"
to add permission to the manifest file.- See Also:
- Constant Field Values
-
-