Navigation

Navigation primitives for Roku SDK applications

Pages

PageDescription
BubbleReturn from a key handler to pass the key on instead of consuming it.
computeSGPathComputes the SceneGraph child-index path from root to target.
createBoundaryStateShared logic for FocusBoundary and RootFocusBoundary.
createFocusRelayCreates a focus relay bound to initialTarget.
createKeyPressCaptureRegistryCreates the tree-wide store of captured key presses that a root boundary shares with its descendants.
FocusBoundaryEstablishes a virtual focus boundary for a subtree of TypeScript components.
focusIdLabelDebug label for a focus identity, for use in log output only.
FocusPathContextContext that RootFocusBoundary provides when its setFocusPath prop is set, so that useFocusable can report which SceneGraph node holds virtual focus.
FocusRelayProviderMakes a focus relay the focus parent of its children.
ModalBoundaryRenders a custom dialog with its own FocusBoundary, dismissed by the Back key.
onPressWraps a handler so it fires only on key-down (press), removing the need for an if (press) guard inside onKey (or onUnhandledKey) handlers.
onReleaseWraps a handler so it fires only on key-up (release).
RootFocusBoundaryThe root of a virtual focus tree for a single anchor node.
ScreenControllerContextContext for managing the screen stack provided by ScreenControllerProvider.
ScreenControllerProviderProvider for ScreenControllerContext.
useFocusableRegisters a component instance with the nearest FocusBoundary.
useFocusActionsReturns imperative focus actions for the nearest FocusBoundary.
useFocusRelayTargetReturns a handle to the nearest enclosing FocusBoundary that focus relays can bind to.
useModalCreates modal open/close state and focus-transfer actions.
Navigation typesTypes shared by several @roku-sdk/navigation exports.

What’s Next

Did this page help you?