Hiyve Components - v1.0.0
    Preparing search index...

    Interface ActivityTimerSnapshot

    A snapshot of the activity timer's state plus its controls, emitted by the AssignmentEditor so consumers can render the timer UI in their own layout (e.g. inside a progress panel).

    interface ActivityTimerSnapshot {
        isActive: boolean;
        isPaused: boolean;
        pause: () => void;
        resume: () => void;
        sessionDurationMinutes: number;
        sessionId: string | null;
        start: () => void;
        stop: () => void;
    }
    Index

    Properties

    isActive: boolean

    Whether a session is currently active (running OR paused)

    isPaused: boolean

    Whether the active session is currently paused

    pause: () => void

    Pause the running session — no-op if not running

    resume: () => void

    Resume a paused session — no-op if not paused

    sessionDurationMinutes: number

    Duration of the current session in minutes (excludes paused time)

    sessionId: string | null

    Stable identifier of the active session — null when no session is running. Pass this to other persistence calls (e.g. submissions) so they can be grouped under the same session.

    start: () => void

    Begin a new session — no-op when one is already running. Lets the consumer render a manual "Start" control (e.g. for contexts where autoStartSession is intentionally false but the user can still start practising on demand).

    stop: () => void

    End the active session and persist it