code: public void setOnTimeCompletionListener(final OnTimeCompletionListener onTimeCompletionListener) {
          if (currentAudioState.get()!=PREPARED_STATE && currentAudioState.get()!=INITIALIZED_STATE ){
              throw new IllegalStateException("Cannot modify onTimeCompletionListener during a non-prepared and non-initialized state");
          }
          this.onTimeCompletionListener = onTimeCompletionListener;
      }
docs: Sets the {@link com.github.republicofgavin.pauseresumeaudiorecorder.PauseResumeAudioRecorder.OnTimeCompletionListener}. Pausing the recorder effectively will pause the timer as well.
  @param onTimeCompletionListener A method you want called when the recording has run out of time. Null if nothing should be called.
  @throws IllegalStateException If this is called during a recording, paused, or error state.