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

Class DataPoint

    • Method Detail

      • getValue

        public <T> T getValue(ValueKey<T> type)
        Get a data value for the given key.

          
           Integer ppgGreen = dataPoint.getValue(ValueKey.PpgSet.PPG_GREEN);
           Float bodyFatRatio = dataPoint.getValue(ValueKey.BiaSet.BODY_FAT_RATIO);
           

        Parameters:
        type - The given value key.
        Returns:
        The data value for the given value key.
        Since:
        1.0.0
      • getTimestamp

        public long getTimestamp()
        Get a timestamp of the DataPoint.

          
           long timestamp = dataPoint.getTimestamp();
           

        Returns:
        A timestamp in milliseconds of the DataPoint.
        Since:
        1.0.0