Function recordResumeTimer

  • Resumes the recording timer if it is not already running and can be paused/resumed.

    Parameters

    Returns Promise<boolean>

    • Returns a promise that resolves to true if the timer was successfully resumed, otherwise false.
    recordResumeTimer({
    parameters: {
    isTimerRunning: false,
    canPauseResume: true,
    recordElapsedTime: 60,
    recordStartTime: Date.now(),
    recordTimerInterval: null,
    showAlert: (alert) => console.log(alert.message),
    updateRecordStartTime: (time) => console.log("New start time:", time),
    updateRecordTimerInterval: (interval) => console.log("New interval:", interval),
    updateIsTimerRunning: (isRunning) => console.log("Is timer running:", isRunning),
    updateCanPauseResume: (canPause) => console.log("Can pause/resume:", canPause),
    getUpdatedAllParams: () => updatedParameters,
    },
    });