Package apple.avfoundation.protocol
Interface AVAudioRecorderDelegate
-
public interface AVAudioRecorderDelegateA protocol for delegates of AVAudioRecorder
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidaudioRecorderBeginInterruption(AVAudioRecorder recorder)Deprecated.default voidaudioRecorderDidFinishRecordingSuccessfully(AVAudioRecorder recorder, boolean flag)audioRecorderDidFinishRecording:successfully: is called when a recording has been finished or stopped.default voidaudioRecorderEncodeErrorDidOccurError(AVAudioRecorder recorder, NSError error)if an error occurs while encoding it will be reported to the delegate.default voidaudioRecorderEndInterruption(AVAudioRecorder recorder)Deprecated.default voidaudioRecorderEndInterruptionWithFlags(AVAudioRecorder recorder, long flags)Deprecated.default voidaudioRecorderEndInterruptionWithOptions(AVAudioRecorder recorder, long flags)Deprecated.
-
-
-
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.
-
-