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

    Interface UseActivityTrackerResult

    interface UseActivityTrackerResult {
        currentSession: ActivitySession | null;
        endSession: () => void;
        isActive: boolean;
        isPaused: boolean;
        pauseSession: () => void;
        resumeSession: () => void;
        sessionDuration: number;
        startSession: () => void;
        updateSessionNotes: (notes: string) => void;
    }
    Index

    Properties

    currentSession: ActivitySession | null

    The current active session (null if no session is active)

    endSession: () => void

    End the current work session

    isActive: boolean

    Whether a session is currently active (running OR paused)

    isPaused: boolean

    Whether the active session is currently paused

    pauseSession: () => void

    Pause the active session — no-op when not active or already paused

    resumeSession: () => void

    Resume a paused session — no-op when not active or not paused

    sessionDuration: number

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

    startSession: () => void

    Start a new work session

    updateSessionNotes: (notes: string) => void

    Update notes for the current session