com.samsung.android.sdk.healthdata
Interface HealthConstants.DiscreteMeasurement
-
- All Superinterfaces:
- HealthConstants.Common
- All Known Subinterfaces:
- HealthConstants.Albumin, HealthConstants.Alp, HealthConstants.Alt, HealthConstants.AmbientTemperature, HealthConstants.Amylase, HealthConstants.Ast, HealthConstants.BloodGlucose, HealthConstants.BloodPressure, HealthConstants.BodyFat, HealthConstants.BodyMuscle, HealthConstants.BodyTemperature, HealthConstants.Bun, HealthConstants.CaffeineIntake, HealthConstants.Cpk, HealthConstants.Creatinine, HealthConstants.DirectBilirubin, HealthConstants.Fev1, HealthConstants.FoodIntake, HealthConstants.Fvc, HealthConstants.Ggt, HealthConstants.Globulin, HealthConstants.HbA1c, HealthConstants.Hdlc, HealthConstants.HealthDocument, HealthConstants.Height, HealthConstants.HipCircumference, HealthConstants.Homocysteine, HealthConstants.Ldh, HealthConstants.Ldlc, HealthConstants.Nutrition, HealthConstants.TotalBilirubin, HealthConstants.TotalCholesterol, HealthConstants.TotalProtein, HealthConstants.Triglyceride, HealthConstants.Uph, HealthConstants.Usg, HealthConstants.UvExposure, HealthConstants.WaistCircumference, HealthConstants.WaterIntake, HealthConstants.Weight
- Enclosing class:
- HealthConstants
public static interface HealthConstants.DiscreteMeasurement extends HealthConstants.Common
This interface contains basic constants for measurement such as the start or offset time.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field and Description static String
START_TIME
UTC milliseconds when the measurement is started.static String
TIME_OFFSET
Time offset in milliseconds which considers the time zone and daylight saving time.-
Fields inherited from interface com.samsung.android.sdk.healthdata.HealthConstants.Common
CREATE_TIME, CUSTOM, DEVICE_UUID, PACKAGE_NAME, UPDATE_TIME, UUID
-
-
-
-
Field Detail
-
START_TIME
static final String START_TIME
UTC milliseconds when the measurement is started.
TIME_OFFSET
needs to set for showing the data's measured time properly.- Mandatory
- Type:
long
- Value range: 0 and above
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
TIME_OFFSET
static final String TIME_OFFSET
Time offset in milliseconds which considers the time zone and daylight saving time. E.g. Tehran (UTC+3:30) is presented as 12600000 (3.5 * 60 * 60 * 1000).
It affects toSTART_TIME
to show the measured time properly to the user.- Mandatory
- Type:
long
- Value range: -43200000 (-12 * 60 * 60 * 1000) ~ 50400000 (14 * 60 * 60 * 1000)
public class HeathDataExample { long getTimeOffset(long currentTime) { return TimeZone.getDefault().getOffset(currentTime); } }
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
-