Loading...
Searching...
No Matches
phone_store.c File Reference

The active phone store: holds the phone's battery level, owns the appmessage phone battery channel, and asks the phone again at launch and whenever the link comes back. More...

Functions

void phone_store_subscribe (void(*cb)(void))
 Hand it the function to call when the level changes (the screen redraw).
void phone_store_init (PhoneConfig cfg, const PhoneSeed *seed)
 Start the store with its rules. Pass seed = NULL for normal use.
int phone_store_battery (void)
 The phone's battery level.
bool phone_store_no_plugin (void)
 Whether the phone said no plugin on it serves the battery.

Detailed Description

The active phone store: holds the phone's battery level, owns the appmessage phone battery channel, and asks the phone again at launch and whenever the link comes back.