getComponentLibraryFactory

Resolves to the runtime's component library factory, which creates dynamic component libraries (DCLs) for a TypeScript app

import {
    getComponentLibraryFactory,
} from "@roku-sdk/runtime/component-library";
const getComponentLibraryFactory: () => Promise<ComponentLibraryFactory>

Description

Resolves to the runtime's component library factory, which creates dynamic component libraries (DCLs) for a TypeScript app.

Call createLibrary(name) on the result with the name of a DCL that the app declares, then load it and watch its load status on the returned ComponentLibrary. createLibrary throws if the name is invalid or the library cannot be created.


What’s Next

Did this page help you?