Deprecated AVAudioRecorderDelegate Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in iOS 6.0

audioRecorderEndInterruption:

Called after your audio session interruption ends. (Deprecated in iOS 6.0.)

- (void)audioRecorderEndInterruption:(AVAudioRecorder *)recorder
Parameters
recorder

The paused audio recorder whose interruption has ended.

Discussion

If you implement the preferred audioRecorderEndInterruption:withFlags: method, it will be called instead of this one.

For an audio recorder’s delegate to receive this message, the audio recorder must have been recording when the interruption started. When an interruption ends, such as by a user ignoring an incoming phone call, the audio session for your application is automatically reactivated; at that point you can again interact with the audio recorder. To resume recording, call the record method.

Availability
  • Available in iOS 2.2 and later.
  • Deprecated in iOS 6.0.
Declared In
AVAudioRecorder.h

audioRecorderEndInterruption:withFlags:

Called after your audio session interruption ends, with flags indicating the state of the audio session. (Deprecated in iOS 6.0.)

- (void)audioRecorderEndInterruption:(AVAudioRecorder *)recorder withFlags:(NSUInteger)flags
Parameters
recorder

The paused audio recorder whose interruption has ended.

flags

Flags indicating the state of the audio session when this method is called. Flags are described in Interruption Flags.

Discussion

For an audio recorder’s delegate to receive this message, the audio recorder must have been recording when the interruption started. When an interruption ends, such as by a user ignoring an incoming phone call, the audio session for your application is automatically reactivated; at that point you can again interact with the audio recorder. To resume recording, call the record method.

If this delegate method receives the AVAudioSessionInterruptionFlags_ShouldResume constant in its flags parameter, the audio session is immediately ready to be used.

If you implement this method, the system does not call the audioRecorderEndInterruption: method.

Availability
  • Available in iOS 4.0 and later.
  • Deprecated in iOS 6.0.
Declared In
AVAudioRecorder.h