code: public void setOnFileSizeReachedListener(final OnFileSizeReachedListener onFileSizeReachedListener){
          if (currentAudioState.get()!=PREPARED_STATE && currentAudioState.get()!=INITIALIZED_STATE ){
              throw new IllegalStateException("Cannot modify onFileSizeReachedListener during a non-prepared and non-initialized state");
          }
          this.onFileSizeReachedListener = onFileSizeReachedListener;
      }
docs: Sets the {@link com.github.republicofgavin.pauseresumeaudiorecorder.PauseResumeAudioRecorder.OnFileSizeReachedListener}
  @param onFileSizeReachedListener A method you want called when the recording has reached its max file size. Null if nothing should be called.
  @throws IllegalStateException If this is called during a recording, paused, or error state.