public final class HealthConstants extends Object
The SDK provides useful data types such as daily steps or the user's profile.
HealthConstants.Common
identifies common properties of health data.
Its values are assigned by the system when a new health data is inserted.
Property | Description |
---|---|
UUID | Health data's unique ID |
CREATE_TIME | Data creation time in the health data store |
UPDATE_TIME | Data's Update time in the health data store |
PACKAGE_NAME | Application package name that provides the health data |
DEVICE_UUID | Device identifier which provides the health data |
CUSTOM | Custom info |
The most data types extend one of the following interfaces according to the data's characteristics.
HealthConstants.DiscreteMeasurement
defines basic measurement information.
HealthConstants.SessionMeasurement
defines session measurement information with a start time and an end time.
The health data framework has the following useful predefined data types.
HealthConstants.StepDailyTrend
HealthConstants.StepCount
HealthConstants.Exercise
HealthConstants.FloorsClimbed
Modifier and Type | Class and Description |
---|---|
static interface |
HealthConstants.Albumin
This interface defines albumin data of the user.
|
static interface |
HealthConstants.Alp
This interface defines ALP (Alkaline Phosphatase) data of the user.
|
static interface |
HealthConstants.Alt
This interface defines ALT(Alanine Aminotransferase) data of the user.
|
static interface |
HealthConstants.AmbientTemperature
This interface defines ambient temperature and humidity data around the device.
|
static interface |
HealthConstants.Amylase
This interface defines Amylase data of the user.
|
static interface |
HealthConstants.Ast
This interface defines AST (Aspartate Aminotransferase) data of the user.
|
static interface |
HealthConstants.BloodGlucose
This interface defines blood glucose data of the user.
|
static interface |
HealthConstants.BloodPressure
This interface defines blood pressure data of the user.
|
static interface |
HealthConstants.BodyFat
This interface defines body fat data of the user.
|
static interface |
HealthConstants.BodyMuscle
This interface defines body muscle data of the user.
|
static interface |
HealthConstants.BodyTemperature
This interface defines body temperature data of the user.
|
static interface |
HealthConstants.Bun
This interface defines BUN (Blood Urea Nitrogen) data of the user.
|
static interface |
HealthConstants.CaffeineIntake
This interface defines caffeine intake data of the user.
|
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.
|
static interface |
HealthConstants.Cpk
This interface defines CPK (Creatine Phosphokinase) data of the user.
|
static interface |
HealthConstants.Creatinine
This interface defines creatinine data of the user.
|
static interface |
HealthConstants.DirectBilirubin
This interface defines direct bilirubin data of the user.
|
static interface |
HealthConstants.DiscreteMeasurement
This interface contains basic constants for measurement such
as the start or offset time.
|
static interface |
HealthConstants.Electrocardiogram
Deprecated.
1.5.0
This data type will be removed. Do not use it any more.
|
static interface |
HealthConstants.Exercise
This interface defines exercise data of the user.
|
static interface |
HealthConstants.Fev1
This interface defines FEV1 (Forced Expiratory Volume in One Second) data of the user.
|
static interface |
HealthConstants.FloorsClimbed
This interface defines floors climbed data of the user.
|
static interface |
HealthConstants.FoodInfo
Deprecated.
Use
HealthConstants.Nutrition instead of it.This data type will be removed. Do not use it any more. |
static interface |
HealthConstants.FoodIntake
Deprecated.
Use
HealthConstants.Nutrition instead of it.This data type will be removed. Do not use it any more. |
static interface |
HealthConstants.Fvc
This interface defines FVC (Forced Vital Capacity) data of the user.
|
static interface |
HealthConstants.Ggt
This interface defines GGT (Gamma Glutamyl Transpeptidase) data of the user.
|
static interface |
HealthConstants.Globulin
This interface defines globulin data of the user.
|
static interface |
HealthConstants.HbA1c
This interface defines glycated hemoglobin data of the user.
|
static interface |
HealthConstants.Hdlc
This interface defines HDL-C(High-Density Lipoprotein Cholesterol) data of the user.
|
static interface |
HealthConstants.HealthDocument
This interface defines health docuemnt data of the user.
|
static interface |
HealthConstants.HeartRate
This interface defines heart rate data of the user.
|
static interface |
HealthConstants.Height
This interface defines height data of the user.
|
static interface |
HealthConstants.HipCircumference
This interface defines hip circumference data of the user.
|
static interface |
HealthConstants.Homocysteine
This interface defines homocysteine data of the user.
|
static interface |
HealthConstants.Ldh
This interface defines LDH (Lactate Dehydrogenase) data of the user.
|
static interface |
HealthConstants.Ldlc
This interface defines LDL-C (Low-Density Lipoprotein Cholesterol) data of the user.
|
static interface |
HealthConstants.Nutrition
This interface defines nutrition user intakes.
|
static interface |
HealthConstants.OxygenSaturation
This interface defines oxygen saturation data in the user's blood.
|
static interface |
HealthConstants.SessionMeasurement
This interface contains measurement constants that has a session with the end time.
|
static interface |
HealthConstants.Sleep
This interface defines sleep data of the user.
|
static interface |
HealthConstants.SleepStage
This interface defines the detailed sleep stage for the specified sleep data.
|
static interface |
HealthConstants.StepCount
This interface defines the user's step count data.
|
static interface |
HealthConstants.StepDailyTrend
This interface defines the user's daily step count trend data.
|
static interface |
HealthConstants.TotalBilirubin
This interface defines total bilirubin data of the user.
|
static interface |
HealthConstants.TotalCholesterol
This interface defines total cholesterol data of the user.
|
static interface |
HealthConstants.TotalProtein
This interface defines total protein data of the user.
|
static interface |
HealthConstants.Triglyceride
This interface defines triglyceride data of the user.
|
static interface |
HealthConstants.Uph
This interface defines UPH (Urine pH) data of the user.
|
static interface |
HealthConstants.Usg
This interface defines USG (Urine Specific Gravity) data of the user.
|
static interface |
HealthConstants.UvExposure
This interface defines UV exposure data around the device.
|
static interface |
HealthConstants.WaistCircumference
This interface defines waist circumference data of the user.
|
static interface |
HealthConstants.WaterIntake
This interface defines water intake data of the user.
|
static interface |
HealthConstants.Weight
This interface defines weight data of the user.
|
Modifier and Type | Field and Description |
---|---|
static String |
USER_PROFILE_DATA_TYPE
Data type name for the user profile.
|
Constructor and Description |
---|
HealthConstants() |
public static final String USER_PROFILE_DATA_TYPE
"com.samsung.health.user_profile"
to add permission to the manifest file.
The user profile is available to read only and can be retrieved with HealthUserProfile
.
Copyright © Samsung Electronics, Co., Ltd. All rights reserved.