com.samsung.android.sdk.healthdata
Interface HealthConstants.SessionMeasurement
-
- All Superinterfaces:
- HealthConstants.Common
- All Known Subinterfaces:
- HealthConstants.Electrocardiogram, HealthConstants.Exercise, HealthConstants.FloorsClimbed, HealthConstants.HeartRate, HealthConstants.OxygenSaturation, HealthConstants.Sleep, HealthConstants.SleepStage, HealthConstants.StepCount
- Enclosing class:
- HealthConstants
public static interface HealthConstants.SessionMeasurement extends HealthConstants.Common
This interface contains measurement constants that has a session with the end time.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field and Description static String
END_TIME
UTC milliseconds after the measurement has ended.static String
START_TIME
UTC milliseconds when the measurement is started.static String
TIME_OFFSET
Time offset 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
-
END_TIME
static final String END_TIME
UTC milliseconds after the measurement has ended.
TIME_OFFSET
needs to set for showing the data's measured time properly.- Mandatory
- Type:
long
- Value range: equal or bigger than
START_TIME
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
TIME_OFFSET
static final String TIME_OFFSET
Time offset 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
andEND_TIME
to show 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
-
-