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: 
daverooneyca
Visitor

Passing Associative Array with Functions to Interface Strips Them?

I have a situation where I've created an object using an associate array and inline functions and I need to pass it to a SceneGraph component via an interface using the "assocarray" type. When I try to do that the functions are "stripped" from the object's associative array and replace with "invalid".

Is that behaviour expected?
0 Kudos
2 REPLIES 2
RokuNB
Roku Guru

Re: Passing Associative Array with Functions to Interface Strips Them?

Yes, that is a limitation of RSG. Node fields do not support function types in any way - regardless if direct or deeply-nested in roAA/roArray. Current implementation strips them silently on assignment.
0 Kudos
jackhand
Visitor

Re: Passing Associative Array with Functions to Interface Strips Them?

Is there a way to pass a Bitmap within the associative array? 
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.