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.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TaskNode callback scope


So, just came across a limitation while creating TaskNodes that the callback function registered with observeField is sent as a string, so it has be defined in the component brs file for the owning component and not anywhere else. For example, if my component brs uses other objects that themselves have member functions, there is no way for those member functions to create TaskNodes and listen for events on them as the observeField doesn't take in the scope for the callback. Am I missing something or this is as designed? Because this essentially means that for any component, all Task Nodes and their callbacks have to be defined inside the component brs.
0 Kudos