ENGLISH·COURSE API
    Preparing search index...

    What usePlaybackPosition hands its caller.

    type PlaybackPositionHandle = {
        get: () => Promise<number | null>;
        set: (seconds: number) => Promise<boolean>;
        flush: () => Promise<void>;
        flushWithBeacon: () => void;
    }
    Index

    Properties

    get: () => Promise<number | null>

    The saved seconds for the lesson, or null when none is saved.

    set: (seconds: number) => Promise<boolean>

    Saves a position; resolves false when the value is not a valid position.

    flush: () => Promise<void>

    Writes any position still waiting for its server window, now.

    flushWithBeacon: () => void

    Hands any waiting position to navigator.sendBeacon, for a page being hidden.