@roku-sdk/native
v2.19.1
Published
Roku SDK Native entry point
Keywords
Readme
@roku-sdk/native
The program entry point and runtime polyfills for RSG SDK apps. It provides main, which connects an app to the Roku OS bridges before its components are declared, and installs the Request, Headers and HttpsAgent globals that go with the firmware's fetch, the default uncaught-exception handler, and, in development builds, a console polyfill. Apps get it as a dependency of @roku-sdk/rsg-ts and seldom import it directly.
Install
pnpm add @roku-sdk/nativeUsage
main, enableExceptionTagging and setUncaughtExceptionHandler are re-exported from @roku-sdk/rsg-ts, which is where apps import them from. installConsolePolyfill is only exported here.
Documentation
- Exception handling —
setUncaughtExceptionHandlerand exception tagging - Console polyfill
- Full SDK documentation
