API

Function getRenderingContextKind

  • Return a stable string identifying the concrete family of context.

    Current core values are "scene", "frame-graph-context", "effect-renderer", "sprite-renderer", and "text-renderer".

    The return type is intentionally a raw string, not a string-literal union, so adding a rendering-context family is not a breaking API change. Treat the values above as the documented set to match against.

    Throws when context is not a rendering context created by Lite.

    Parameters

    Returns string