Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
nmaves
Visitor

Stop task when node is no longer available

I have a panel within a panelset that uses a timer to refresh itself.  I can't figure out a way to start this on init() and then stop when the panel has been replaced.

Any ideas?
0 Kudos
1 REPLY 1
joetesta
Roku Guru

Re: Stop task when node is no longer available

can you create the timer on init, set to invalid when panel replaced and create new timer when needed?
aspiring
0 Kudos