Topic: widget exit

Hi!

Is there a way to know that my widget is exiting now(because the next widget in the channel is going to load)? I wanted to save some widget state in this function instead of doing is continuously.

rubpa

Re: widget exit

There is no event that to let you know the widget is exiting, but you can found out when the widget will exit from the proper _chumby_timer_expires.  You can schedule your own event by checking the time against that value in onEnterFrame().

Re: widget exit

Note that that value is solely based on the timer - the user can exit the widget at any time, or an alarm can go off, or...