• 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/b­lob/9b4d2e140b8876428fb6fff4c3a5d1b060ec­0dd3/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!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

how to temporarily prevent widgets from being shown?

Posted by Avatar for Andreas_Rozek @Andreas_Rozek

Actions