com.samsung.android.sdk.healthdata
Interface 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.DiscreteMeasurement, HealthConstants.Electrocardiogram, HealthConstants.Exercise, HealthConstants.Fev1, HealthConstants.FloorsClimbed, HealthConstants.FoodInfo, HealthConstants.FoodIntake, HealthConstants.Fvc, HealthConstants.Ggt, HealthConstants.Globulin, HealthConstants.HbA1c, HealthConstants.Hdlc, HealthConstants.HealthDocument, HealthConstants.HeartRate, HealthConstants.Height, HealthConstants.HipCircumference, HealthConstants.Homocysteine, HealthConstants.Ldh, HealthConstants.Ldlc, HealthConstants.Nutrition, HealthConstants.OxygenSaturation, HealthConstants.SessionMeasurement, HealthConstants.Sleep, HealthConstants.SleepStage, HealthConstants.StepCount, HealthConstants.StepDailyTrend, 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.Common
This interface contains the common constants for health data such as the data's unique ID, the application package name which provides data, and the data's source device information.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field and Description static String
CREATE_TIME
UTC milliseconds when a data is created in the health data store.static String
CUSTOM
Custom info which is formatted with JSON and compressed data.static String
DEVICE_UUID
Device identifier of the source device which provides a health data.static String
PACKAGE_NAME
Package name which provides a data.static String
UPDATE_TIME
UTC milliseconds when a data is updated.static String
UUID
Unique ID for each health data.
-
-
-
Field Detail
-
UUID
static final String UUID
Unique ID for each health data.
You don't need to set its value because it is assigned by the system when a new data is inserted.- Assigned by the system
- Type:
String
- Value length: 10 ~ 36
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
CREATE_TIME
static final String CREATE_TIME
UTC milliseconds when a data is created in the health data store.
You don't need to set its value because it is assigned by the system when a new data is inserted. It is different withSTART_TIME
that indicates the start time for measurement.- Assigned by the system
- Type:
long
- Value range: 0 and above
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
UPDATE_TIME
static final String UPDATE_TIME
UTC milliseconds when a data is updated.
You don't need to set its value. When a new data is inserted, it is assigned as the same value withCREATE_TIME
by the system. Then it is replaced to the updated time by the system if existing health data is updated.- Assigned by the system
- Type:
long
- Value range: 0 and above
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
PACKAGE_NAME
static final String PACKAGE_NAME
Package name which provides a data.
You don't need to set its value because it is assigned by the system when a new data is inserted.- Assigned by the system
- Type:
String
- Value length: 0 ~ 64
- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
DEVICE_UUID
static final String DEVICE_UUID
Device identifier of the source device which provides a health data.- Mandatory
- Type:
String
- Value length: 10 ~ 36
HealthData.setSourceDevice(String)
to query health data.- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
CUSTOM
static final String CUSTOM
Custom info which is formatted with JSON and compressed data.
It is used to customize the predefined data type. Otherwise, custom info can be retrieved from the saved data if you know the custom property's JSON format already.- Optional
- Type:
byte[]
Compressed JSON conversion can be:
- Since:
- 1.3.0
- See Also:
HealthDataUtil
, Constant Field Values
-
-