class PauseResumeAudioRecorder {

    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;
    }

    public  PauseResumeAudioRecorder();

}