com.samsung.android.service.health.tracking.data

Class ValueKey.SweatLossSet

  • java.lang.Object
    • com.samsung.android.service.health.tracking.data.ValueKey.SweatLossSet
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static ValueKey<Integer> STATUS
      Status flag for sweat loss measurement.
      static ValueKey<Float> SWEAT_LOSS
      Sweat loss prediction result for an exercise, in milliliters (ml).
    • Constructor Summary

      Constructors 
      Constructor and Description
      SweatLossSet() 
    • Field Detail

      • SWEAT_LOSS

        public static final ValueKey<Float> SWEAT_LOSS
        Sweat loss prediction result for an exercise, in milliliters (ml).
        If STATUS is other than 0, then the sweat loss value is 0.
        Since:
        1.0.0
      • STATUS

        public static final ValueKey<Integer> STATUS
        Status flag for sweat loss measurement.

        The available values are:

        Status Description Deprecated
        -10 The Photoplethysmogram (PPG) signal is too weak. Accuracy is very low. Yes
        -8 The PPG signal is weak. Accuracy is low. Yes
        -4 Another application has registered the sweat loss Health Tracking Service.
        The existing sweat loss Health Tracking Service was terminated automatically.
        -3 The Galaxy wearable is detached Yes
        -2 Unknown error
        -1 Sweat loss sensor's accelerometer data accuracy is low Yes
        0 No error
        1 ~ 127 Exercise data is included in one more following cases:

        • Duration of less than 5 minutes.
        • Distance of less than 2 kilometers.
          Otherwise the user burned 90 kilocalories or less.
        • Sweat loss of less than 100 milliliters.
        • More than 20% of heart rate values are 0.
        • More than 20% of steps per minute (SPM) values are 0.
        • An initialization error. An estimator object does not exist.
        • An SPM mean of 110 or less.

        To get a more detailed status, check the 0th to 6th bit.

           int status = dataPoint.getValue(ValueKey.SweatLossSet.STATUS);
           if (status > 0) {
               for (int n = 0; n <= 6; n++) {  // Check the status's nth bit.
                   int nthBit = (status >> n) & 0x1; // The non-zero nth Bit represents a corresponding error.
               }
           }

        If the nthBit value is not zero, an error occurred. Each nth bit error is described in the following table.
        One more nth bits can be non-zero.

          nth bit Description
          0 Duration is less than 5 minutes.
          1 Distance is less than 2 kilometers.
          Otherwise the user burned 90 kilocalories or less.
          2 Sweat loss is less than 100 milliliters.
          3 More than 20% of heart rate values are 0.
          4 More than 20% of SPM (steps per minute) values are 0.
          5 Initialization error. An estimator object does not exist.
          6 A SPM mean is less or equal than 110.


        Since:
        1.0.0
    • Constructor Detail

      • SweatLossSet

        public SweatLossSet()