Const
Records the pause timer.
The options for recording the pause timer.
A flag to stop the timer.
Indicates if the timer is running.
Indicates if the timer can be paused or resumed.
Function to show alerts.
true if the timer can be paused or resumed, otherwise false.
true
false
const canPause = recordPauseTimer({ stop: false, isTimerRunning: true, canPauseResume: true, showAlert: (alert) => console.log(alert.message),}) Copy
const canPause = recordPauseTimer({ stop: false, isTimerRunning: true, canPauseResume: true, showAlert: (alert) => console.log(alert.message),})
Records the pause timer.