Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
daverooneyca
Level 7

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
Roku Employee
Roku Employee

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
Level 7

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

Is there a way to pass a Bitmap within the associative array? 
0 Kudos