94#define APPMESSAGE_CUSTOM_COLORS_MAX 502
void appmessage_on_calendar_strip(CalendarStripHandler cb)
Packed agenda strip.
Definition appmessage.c:62
void appmessage_on_stock_strip(StockStripHandler cb)
Packed watchlist strip.
Definition appmessage.c:61
void appmessage_add_inbox_complete(InboxCompleteHandler cb)
Adds work to run once after a whole inbound message is handled, after every channel in it.
Definition appmessage.c:66
void(*) CoordsHandler(const char *lat, const char *lon)
Called with a fresh pair of coordinates.
Definition appmessage.h:37
void(*) WeatherHandler(const WeatherMessage *msg)
Called with one weather message, holding every group of readings it carried.
Definition appmessage.h:29
void(*) CustomColorsHandler(const char *combined)
Called inbound with the combined custom-colours string, for the face to split and store.
Definition appmessage.h:82
void(*) CustomColorsProvider(char *out, size_t n)
Called outbound to rebuild the combined custom-colours string before a settings reply is sent.
Definition appmessage.h:91
void(*) UnitChangedHandler(bool fahrenheit)
Called when the wearer switches the temperature unit on the settings page.
Definition appmessage.h:54
void appmessage_on_coords(CoordsHandler cb)
Latitude and longitude.
Definition appmessage.c:58
void appmessage_on_weather(WeatherHandler cb)
One weather message, every group it carried.
Definition appmessage.c:57
void(*) SettingsChangedHandler(bool time_or_date_changed)
Called after a settings save that changed something.
Definition appmessage.h:45
void(*) StockStripHandler(const uint8_t *buf, uint16_t len)
Called with a packed watchlist strip. The handler owns the wire format.
Definition appmessage.h:62
void(*) InboxCompleteHandler(void)
Called once after every inbox message is fully handled.
Definition appmessage.h:102
void appmessage_on_unit_changed(UnitChangedHandler cb)
The wearer switched the temperature unit.
Definition appmessage.c:60
void appmessage_open(uint32_t inbox_size)
Register the SDK callbacks and open the inbox and outbox.
Definition appmessage.c:714
void appmessage_request_calendar(void)
Asks the phone for a fresh agenda. The calendar store calls this on its turn on the shared cadence....
Definition appmessage.c:283
void appmessage_request_stock(void)
Asks the phone for fresh quotes. The stock store calls this on its turn on the shared cadence....
Definition appmessage.c:276
void appmessage_on_custom_colors(CustomColorsHandler cb)
Inbound: splits and stores the combined string.
Definition appmessage.c:63
void appmessage_on_settings_changed(SettingsChangedHandler cb)
A setting changed on the phone.
Definition appmessage.c:59
void(*) CalendarStripHandler(const uint8_t *buf, uint16_t len)
Called with a packed agenda strip. The store owns the wire format.
Definition appmessage.h:70
void appmessage_request_weather(void)
Asks the phone for a fresh weather reading. The weather store calls this on its turn on the shared ca...
Definition appmessage.c:260
void appmessage_set_custom_colors_provider(CustomColorsProvider cb)
Outbound: rebuilds the combined string.
Definition appmessage.c:64
One weather message as the transport read it, before anything is kept.
Definition weather_reading.h:43
One weather message off the phone, and the reading it leaves behind.