MediaSFU React Native
    Preparing search index...

    Function recordPauseTimer

    • Records the pause timer.

      Parameters

      • options: RecordPauseTimerOptions

        The options for recording the pause timer.

        • Optionalstop?: boolean
        • isTimerRunning: boolean
        • canPauseResume: boolean
        • OptionalshowAlert?: ShowAlert

      Returns boolean

      A boolean value indicating if the timer can be paused or resumed.

      const canPause = recordPauseTimer({
      stop: false,
      isTimerRunning: true,
      canPauseResume: true,
      showAlert: (alert) => console.log(alert.message),
      });
      console.log("Can pause:", canPause); // Logs true or shows alert if conditions not met