Package com.microej.wear.services
Interface HealthService
-
public interface HealthServiceThis service allows Features to get health information.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAwakeSleepDuration()Returns the awake sleep duration.intgetCalories()Returns the number of calories burned in the current day.intgetDeepSleepDuration()Returns the deep sleep duration.intgetHeartRate()Returns the current heart rate.intgetLightSleepDuration()Returns the light sleep duration.intgetOxygenSaturation()Returns the blood peripheral oxygen saturation.intgetRemSleepDuration()Returns the REM sleep duration.intgetSteps()Returns the number of steps walked in the current day.
-
-
-
Method Detail
-
getSteps
int getSteps()
Returns the number of steps walked in the current day.- Returns:
- the number of steps.
-
getCalories
int getCalories()
Returns the number of calories burned in the current day.- Returns:
- the number of calories (in kcal).
-
getHeartRate
int getHeartRate()
Returns the current heart rate.- Returns:
- the heart rate (in bpm).
-
getOxygenSaturation
int getOxygenSaturation()
Returns the blood peripheral oxygen saturation.- Returns:
- the oxygen saturation (in %).
-
getAwakeSleepDuration
int getAwakeSleepDuration()
Returns the awake sleep duration.- Returns:
- the awake sleep duration (in minutes).
-
getRemSleepDuration
int getRemSleepDuration()
Returns the REM sleep duration.- Returns:
- the REM sleep duration (in minutes).
-
getLightSleepDuration
int getLightSleepDuration()
Returns the light sleep duration.- Returns:
- the light sleep duration (in minutes).
-
getDeepSleepDuration
int getDeepSleepDuration()
Returns the deep sleep duration.- Returns:
- the deep sleep duration (in minutes).
-
-