I'm working with Roku's SceneGraph framework and need to extend a component from my ComponentLibrary.
I want to allow consumers of my library to extend components using SceneGraph's extend
feature. For example, enabling them to create a CustomController
(derived in the component library consumer) that extends my library's AbstractController
(derived in the ComponentLibrary) component.
I attempted to extend the component by referencing the library name and component name:
<component name="CustomController" extends="ComponentLib:AbstractController">
This resulted in compile errors.
Unfortunately no, extending a component from a component library is not supported. This is because component libraries are loaded at runtime, whereas your app is compiled far sooner in the process. Think of the timing of events like this:
So as you can see, the problem is you cannot get past step 2 when the components you need to extend are from step 5.