@maplibre/native-ffi
    Preparing search index...

    Interface RenderFrameResult

    Terminal result of one frame demand, held by an owned frame-result batch and copied by mln_acquired_frame_get_result().

    See mln_render_frame_result in the C API reference.

    interface RenderFrameResult {
        disposition: RenderResult;
        frameGeneration: bigint;
        generation: bigint;
        mapUpdateGeneration: bigint;
        needsRepaint: boolean;
        token: bigint;
        view: MapView;
    }
    Index
    disposition: RenderResult

    One mln_render_result value.

    frameGeneration: bigint

    Position of the frame among the frames that the session rendered, counting from one. Zero unless disposition is MLN_RENDER_RESULT_RENDERED.

    generation: bigint

    The session's target generation when the demand reached its result. See mln_render_session_snapshot.generation.

    mapUpdateGeneration: bigint

    Generation of the map render update the demand evaluated. When disposition is MLN_RENDER_RESULT_RENDERED, the frame drew that update; compare it with mln_completion_result.render_update_generation to find the first frame that includes a command.

    needsRepaint: boolean

    Whether the map asked for another frame while it rendered this one, as during an ongoing paint transition. Set only when disposition is MLN_RENDER_RESULT_RENDERED, and false for every other outcome. It matches the needs_repaint field of MLN_RUNTIME_EVENT_MAP_RENDER_FRAME_FINISHED. A camera transition does not set it: the map publishes an update for each of the transition's frames instead, which a render-if-needed demand renders.

    token: bigint
    view: MapView

    The view that this frame drew, from the transform of the map update that it rendered. A host that displays the frame builds its projection with mln_map_projection_create() to place overlays where the frame drew their coordinates. Zero, with a size of zero, unless disposition is MLN_RENDER_RESULT_RENDERED.