foo-webview-sdk
    Preparing search index...

    Interface JitSessionSnapshot

    interface JitSessionSnapshot {
        current: JitSessionAttempt | null;
        lastEventSeq: number;
        nativeContext?: JitNativeContextSummary;
        neededAfterAttemptId: string | null;
        neededRequestKey: string | null;
        next: JitSessionNextEntry | null;
        ownerEpoch: number;
        ownerState: "none" | "connected" | "disconnected";
        pendingOperations: string[];
        phase: "active" | "stopped" | "released";
        phaseReason: "command" | "external" | "user" | "legacyTakeover" | null;
        revision: number;
        sessionId: string;
        supplyState: "ready" | "preparing" | "needed" | "exhausted";
    }
    Index
    current: JitSessionAttempt | null

    The current attempt, or null.

    lastEventSeq: number

    eventSeq of the last event this snapshot reflects.

    nativeContext?: JitNativeContextSummary

    The native context captured with jitSession.prepareAdoption; absent when there is none.

    neededAfterAttemptId: string | null

    The attempt an unanswered jitSession:needNext was sent for, or null.

    neededRequestKey: string | null

    Identifier of the unanswered supply request, or null.

    next: JitSessionNextEntry | null

    The next entry, or null.

    ownerEpoch: number

    Current control generation.

    ownerState: "none" | "connected" | "disconnected"

    Whether the controlling page is still loaded.

    pendingOperations: string[]

    Pending operations, in the order they were accepted.

    phase: "active" | "stopped" | "released"

    active while the session runs playback, stopped after a stop, released after jitSession.release or a jitQueue takeover; a takeover while an adopted native context is open leaves it stopped.

    phaseReason: "command" | "external" | "user" | "legacyTakeover" | null

    Why the session last stopped or was released, or null.

    revision: number

    State version; every change the session reports raises it.

    sessionId: string

    The session.

    supplyState: "ready" | "preparing" | "needed" | "exhausted"

    needed: no next entry and no end declared; preparing: the next entry's operation is pending; ready: the next entry is buffered; exhausted: the end of queue was declared.