Data exchange between a widget and a clock face #5182
Replies: 1 comment
-
Posted at 2022-09-12 by malaire All properties/functions of a widget are globally available as
All widgets are stopped and restarted when user goes to settings screen, just like when user changes to any other app. (Settings is just one of the apps.) Posted at 2022-09-12 by malaire Some code for an example. If you define your widget as
Then in your clock, after calling Posted at 2022-09-14 by user149221
Ha! ok so my strategy is not the right one. Thanks for the quick response and relevant information. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-09-12 by user149221
I'm working on a small project and I would like to know if there is an elegant way to exchange information between a widget and a clock face. I need to run part of my program in the background, so in a widget, but I would like to display information in the clock face.
The reason is that certain processes should not be interrupted when the user presses the button to go to the setting screen.
Is there a way to declare global variables between apps and widgets.
thank you
Beta Was this translation helpful? Give feedback.
All reactions