I'm a little confused still when you say "you can just create a new Bangle.setUI and now every app will use that". Isn't that Bangle.setUI local to the app that is currently running? So if I specify a callback, that function would have to be defined in the same app or clock? Or can other apps use a callback function that is defined in another app?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ok thanks, the source code makes it much clearer.
I'm a little confused still when you say "you can just create a new Bangle.setUI and now every app will use that". Isn't that Bangle.setUI local to the app that is currently running? So if I specify a callback, that function would have to be defined in the same app or clock? Or can other apps use a callback function that is defined in another app?