public static interface HealthConstants.CaffeineIntake extends HealthConstants.DiscreteMeasurement
Properties of the following extending interfaces are available for this data type.
Caffeine intake data has the following properties.
Property name | Description |
---|---|
HealthConstants.CaffeineIntake.DEVICE_UUID | [Mandatory] Device identifier which provides the health data |
HealthConstants.CaffeineIntake.START_TIME | [Mandatory] UTC milliseconds when the measurement is started |
HealthConstants.CaffeineIntake.TIME_OFFSET | [Mandatory] Time offset in milliseconds which considers the time zone and daylight saving time |
HealthConstants.CaffeineIntake.AMOUNT | [Mandatory] Amount of caffeine intake |
HealthConstants.CaffeineIntake.UNIT_AMOUNT | [Mandatory] Amount for one unit of caffeine |
HealthConstants.CaffeineIntake.COMMENT | Comment |
HealthConstants.CaffeineIntake.CUSTOM | Custom info which is formatted with JSON and compressed data |
Modifier and Type | Field and Description |
---|---|
static String |
AMOUNT
Amount of caffeine intake in milligrams.
|
static String |
COMMENT
Comment for data.
|
static String |
HEALTH_DATA_TYPE
Data type name for caffeine intake.
|
static String |
UNIT_AMOUNT
Amount in milligram for one unit of caffeine, e.g. in regular size cup or large size cup.
|
START_TIME, TIME_OFFSET
CREATE_TIME, CUSTOM, DEVICE_UUID, PACKAGE_NAME, UPDATE_TIME, UUID
static final String AMOUNT
float
static final String UNIT_AMOUNT
UNIT_AMOUNT
is 80
.
float
static final String COMMENT
String
static final String HEALTH_DATA_TYPE
"com.samsung.health.caffeine_intake"
to add permission to the manifest file.Copyright © Samsung Electronics, Co., Ltd. All rights reserved.