As mentioned yesterday, I'm currently developing an analog clock with several configuration screens.
Widgets should only be shown while the clock is running - and hidden while any configuration screen is active. I already figured out how to (temporarily) let Bangle.appRect cover the whole screen, and (during configuration) I also do not actively draw any widgets.
However, from time to time, some widgets still appear on the screen - presumably because that widget wants to inform about some changes (e.g., the battery widget).
How do I temporarily prevent widgets from being shown?
There's an example of this in https://github.com/espruino/BangleApps/blob/9b4d2e140b8876428fb6fff4c3a5d1b060ec0dd3/apps/widviz/widget.js
... maybe this functionality should actually be turned into a library?
good to know - thank you! I'll have a look into it!
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem