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...
#include "io/stores/phone_store.h"#include "io/appmessage/appmessage.h"#include "io/appmessage/appmessage_features.h"#include "io/stores/system_store.h"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. | |
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.