Interface AVAudioRecorderDelegate


  • public interface AVAudioRecorderDelegate
    A protocol for delegates of AVAudioRecorder
    • Method Detail

      • audioRecorderBeginInterruption

        @Deprecated
        default void audioRecorderBeginInterruption​(AVAudioRecorder recorder)
        Deprecated.
        audioRecorderBeginInterruption: is called when the audio session has been interrupted while the recorder was recording. The recorded file will be closed.
      • audioRecorderDidFinishRecordingSuccessfully

        default void audioRecorderDidFinishRecordingSuccessfully​(AVAudioRecorder recorder,
                                                                 boolean flag)
        audioRecorderDidFinishRecording:successfully: is called when a recording has been finished or stopped. This method is NOT called if the recorder is stopped due to an interruption.
      • audioRecorderEncodeErrorDidOccurError

        default void audioRecorderEncodeErrorDidOccurError​(AVAudioRecorder recorder,
                                                           NSError error)
        if an error occurs while encoding it will be reported to the delegate.
      • audioRecorderEndInterruption

        @Deprecated
        default void audioRecorderEndInterruption​(AVAudioRecorder recorder)
        Deprecated.
        audioRecorderEndInterruption: is called when the preferred method, audioRecorderEndInterruption:withFlags:, is not implemented.
      • audioRecorderEndInterruptionWithFlags

        @Deprecated
        default void audioRecorderEndInterruptionWithFlags​(AVAudioRecorder recorder,
                                                           long flags)
        Deprecated.
      • audioRecorderEndInterruptionWithOptions

        @Deprecated
        default void audioRecorderEndInterruptionWithOptions​(AVAudioRecorder recorder,
                                                             long flags)
        Deprecated.
        audioRecorderEndInterruption:withOptions: is called when the audio session interruption has ended and this recorder had been interrupted while recording. Currently the only flag is AVAudioSessionInterruptionFlags_ShouldResume.