focusIdLabel

Debug label for a focus identity, for use in log output only

Available since @roku-sdk/navigation 2.19.0

import { focusIdLabel } from "@roku-sdk/navigation";
focusIdLabel(focusId: object | null | undefined): string

Deprecated.

Test hook that was never meant to be public. It will be removed from the public exports in the next major release.

Description

Debug label for a focus identity, for use in log output only.

Returns the id when present, otherwise a stable placeholder. Never throws and never reads through to anything the registry depends on.

Parameters

NameTypeDescription
focusIdobject | null | undefinedThe focus identity to describe, or no identity.

Return values

The identity's id, or a placeholder when it has none.


What’s Next

Did this page help you?