Active time store. It owns the tickers (the minute tick, the swatch .beats AppTimer, and the hour tick) and swaps between them for the current cadence, so a face just hands it the rules and reads the time back. More...
#include <pebble.h>Go to the source code of this file.
Data Structures | |
| struct | TimeConfig |
| The rules a face hands the store, built from its own settings so the store names no SETTING_*. More... | |
Functions | |
| void | time_store_init (TimeConfig cfg, const struct tm *seed) |
| Start the store with its rules. Pass seed = NULL to start from the current time. | |
| void | time_store_reconfigure (TimeConfig cfg) |
| Re-apply the rules (e.g. the time format changed). Swaps the ticker to match. | |
| void | time_store_subscribe (void(*cb)(void)) |
| Hand it the function to call when the time changes (the screen redraw). | |
| const struct tm * | time_store_tm (void) |
| The time we hold right now. | |
Active time store. It owns the tickers (the minute tick, the swatch .beats AppTimer, and the hour tick) and swaps between them for the current cadence, so a face just hands it the rules and reads the time back.