com.samsung.android.sdk.healthdata

Interface HealthConstants.WaterIntake

    • Field Detail

      • AMOUNT

        static final String AMOUNT
        Amount of water intake in milliliters.

        • Mandatory
        • Type: float
        • Value range: 0 and above

        Since:
        1.0.0
        See Also:
        Constant Field Values
      • UNIT_AMOUNT

        static final String UNIT_AMOUNT
        Amount in milliliters for one unit of water, e.g. in glass or bottle.

        • Mandatory
        • Type: float
        • Value range: 0 and above

        Note: Samsung Health's unit amount is 250 ml. If you want to show your app's water intake data rightly on Samsung Health, set it as 250.

        Since:
        1.0.0
        See Also:
        Constant Field Values
      • COMMENT

        static final String COMMENT
        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
        Data type name for water intake.
        Use "com.samsung.health.water_intake" to add permission to the manifest file.
        See Also:
        Constant Field Values