foo-webview-sdk
    Preparing search index...

    Interface JitSessionClaimControlParamsExperimental

    Parameters for jitSession.claimControl. Take control of a session without restarting what is playing. resume is for a page reloaded in the window whose previous page held control; handover is for any other page and must name the current ownerEpoch. The previous controller's token stops working and its pending operations are kept. Fails with NOT_OWNER when resuming is not allowed and with CONFLICT when expectedOwnerEpoch is out of date.

    interface JitSessionClaimControlParams {
        expectedOwnerEpoch?: number;
        mode: "resume" | "handover";
        requestId: string;
        sessionId: string;
    }
    Index
    expectedOwnerEpoch?: number

    The ownerEpoch being taken over; required for handover.

    mode: "resume" | "handover"

    resume after reloading in the controlling window, handover from any other page.

    requestId: string

    Caller-chosen key that makes a retry return the first answer.

    sessionId: string

    Session to claim.