What the health store shares with its optional parts, the heart rate graph, the hourly steps, and the heart rate day. A face never includes this. It names a part in its HealthConfig. More...
#include <pebble.h>Go to the source code of this file.
Typedefs | |
| typedef void(*) | MinuteRecordFn(int hour, const HealthMinuteData *record, void *context) |
| Called for each good record a walk of the minute log finds. | |
Functions | |
| void | health_store_redraw (void) |
| Asks the face to redraw, for a part whose own timer changed what it holds. | |
| time_t | health_hour_start (const struct tm *today, int hour) |
| When a local hour of today starts. | |
| bool | health_metric_available (HealthMetric metric, time_t start, time_t end) |
| Whether the watch actually has a reading for a metric over a time span. | |
| HealthMinuteData * | health_scratch_take (int records) |
| Allocate scratch room for a minute-history read, off the heap for the length of the read rather than sitting in the app's fixed footprint. | |
| bool | health_walk_minute_log (const struct tm *local, int first_hour, int end_hour, time_t until, MinuteRecordFn each, void *context) |
| Walks the watch's minute log over today's hours and hands each good record, with the hour it falls in, to the each callback. | |
What the health store shares with its optional parts, the heart rate graph, the hourly steps, and the heart rate day. A face never includes this. It names a part in its HealthConfig.