Interface AVAudioRecorderDelegate


  • public interface AVAudioRecorderDelegate
    [@protocol] AVAudioRecorderDelegate A protocol for delegates of AVAudioRecorder. API-Since: 3.0
    • Method Detail

      • audioRecorderBeginInterruption

        @Deprecated
        default void audioRecorderBeginInterruption​(@NotNull
                                                    @NotNull AVAudioRecorder recorder)
        Deprecated.
        audioRecorderBeginInterruption: audioRecorderBeginInterruption: is called when the audio session has been interrupted while the recorder was recording. The recorded file will be closed. Deprecated - use AVAudioSession instead. API-Since: 2.2 Deprecated-Since: 8.0 Deprecated-Message: Deprecated - use AVAudioSession instead
      • audioRecorderDidFinishRecordingSuccessfully

        default void audioRecorderDidFinishRecordingSuccessfully​(@NotNull
                                                                 @NotNull AVAudioRecorder recorder,
                                                                 boolean flag)
        audioRecorderDidFinishRecording:successfully: This callback method 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​(@NotNull
                                                           @NotNull AVAudioRecorder recorder,
                                                           @Nullable
                                                           @Nullable NSError error)
        audioRecorderEncodeErrorDidOccur:error: This callback method is called when an error occurs while encoding. If an error occurs while encoding it will be reported to the delegate.
      • audioRecorderEndInterruption

        @Deprecated
        default void audioRecorderEndInterruption​(@NotNull
                                                  @NotNull AVAudioRecorder recorder)
        Deprecated.
        audioRecorderEndInterruption: audioRecorderEndInterruption: is called when the preferred method, audioRecorderEndInterruption:withFlags:, is not implemented. Deprecated - use AVAudioSession instead. API-Since: 2.2 Deprecated-Since: 6.0 Deprecated-Message: Deprecated - use AVAudioSession instead
      • audioRecorderEndInterruptionWithFlags

        @Deprecated
        default void audioRecorderEndInterruptionWithFlags​(@NotNull
                                                           @NotNull AVAudioRecorder recorder,
                                                           long flags)
        Deprecated.
        audioRecorderEndInterruption:withFlags: audioRecorderEndInterruption:withFlags: is called when the audio session interruption has ended and this recorder had been interrupted while recording. Deprecated - use AVAudioSession instead. API-Since: 4.0 Deprecated-Since: 6.0 Deprecated-Message: Deprecated - use AVAudioSession instead
      • audioRecorderEndInterruptionWithOptions

        @Deprecated
        default void audioRecorderEndInterruptionWithOptions​(@NotNull
                                                             @NotNull AVAudioRecorder recorder,
                                                             long flags)
        Deprecated.
        audioRecorderEndInterruption:withOptions: 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. Deprecated - use AVAudioSession instead. API-Since: 6.0 Deprecated-Since: 8.0 Deprecated-Message: Deprecated - use AVAudioSession instead