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

Traversing components hierarchy

Hi,

Suppose, I have an hierarchy of components

"C" extends "B", which extends "A".

Is it a way based on a given instance of "C" to know what component it extends and what component its extended component extends?
Alternatively, if they implemented a method that returned this information, is it a way to call the "base" component's method?

Thanks,
0 Kudos
1 REPLY 1
newlvl
Visitor

Re: Traversing components hierarchy

Well, it is pretty simple:

ContentNode has the parentSubtype() method that does exactly, what is needed.
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.