@roku-sdk/runtime
v2.19.1
Published
Roku SDK Runtime wrappers
Keywords
Readme
@roku-sdk/runtime
Getters and hooks that give a Roku SDK app access to Roku OS services such as device information, app lifecycle, remote input, the file system, voice, accessibility and HDMI-CEC.
Each subpath export wraps one Roku OS runtime interface. A getter returns the service itself, and a hook exposes its events as SolidJS signals that are cleaned up with the calling component. Apps normally import these APIs from @roku-sdk/rsg-ts/runtime, which re-exports most of them; the @roku-sdk/runtime/* subpaths are the source of each API and are listed here.
Install
pnpm add @roku-sdk/runtimeUsage
import { getDeviceInfo, useUiResolution } from "@roku-sdk/rsg-ts/runtime";
const info = getDeviceInfo();
const resolution = useUiResolution();Documentation
- Runtime API wrapper patterns — how the getters and hooks are built
