com.samsung.android.sdk.healthdata

Interface HealthConstants.FoodInfo

    • Field Detail

      • PROVIDER_FOOD_ID

        static final String PROVIDER_FOOD_ID
        Deprecated. 
        Food ID that is unique in the same INFO_PROVIDER.

        • Mandatory
        • Type: String
        • Value length: 1 ~ 64

        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, its METRIC_SERVING_AMOUNT is 300 and its METRIC_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