com.samsung.android.sdk.healthdata

Interface HealthConstants.HeartRate

    • Field Detail

      • HEART_RATE

        static final String HEART_RATE
        Heart rate value, beats per minute (bpm).

        • Mandatory
        • Type: float
        • Value range: 0 ~ 300

        Since:
        1.0.0
        See Also:
        Constant Field Values
      • HEART_BEAT_COUNT

        static final String HEART_BEAT_COUNT
        Total heart beat count for measurement time.

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

        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
      • MIN

        static final String MIN
        Min value in BINNING_DATA.

        • Optional
        • Type: float
        • Value range: 0 ~ 300

        Since:
        1.3.0
        See Also:
        Constant Field Values
      • MAX

        static final String MAX
        Max value in BINNING_DATA.

        • Optional
        • Type: float
        • Value range: 0 ~ 300

        Since:
        1.3.0
        See Also:
        Constant Field Values
      • BINNING_DATA

        static final String BINNING_DATA
        Continuous heart rate which is formatted with JSON and compressed data.

        • Optional
        • Type: byte[]
        • Maximum data size: 1000 KB

        Binning data can have one or more segment.
        Each segment is composed of the following JSON Keys.

        JSON key Type Unit Mandatory
        "heart_rate" float Beat per minute Yes.
        Set this value if you save BINNING_DATA.
        "heart_rate_min" float Beat per minute Yes.
        Set this value if you save BINNING_DATA.
        "heart_rate_max" float Beat per minute Yes.
        Set this value if you save BINNING_DATA.
        "start_time" long UTC millisecond Yes.
        Set this value if you save BINNING_DATA.
        "end_time" long UTC millisecond Yes.
        Set this value if you save BINNING_DATA.

        The following example shows the JSON format for BINNING_DATA.

           {
               "heart_rate":147.48181,
               "heart_rate_min":99.0,
               "heart_rate_max":124.0,
               "start_time":1422457096536,
               "end_time":1493922600000
           }

        Compressed JSON conversion can be:

        Since:
        1.3.0
        See Also:
        HealthDataUtil, Constant Field Values
      • HEALTH_DATA_TYPE

        static final String HEALTH_DATA_TYPE
        Data type name for heart rate data.
        Use "com.samsung.health.heart_rate" to add permission to the manifest file.
        Since:
        1.0.0
        See Also:
        Constant Field Values