Deprecated AVAudioPlayerDelegate Methods

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

Deprecated in iOS 6.0

audioPlayerEndInterruption:

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

- (void)audioPlayerEndInterruption:(AVAudioPlayer *)player
Parameters
player

The audio player whose interruption has ended.

Discussion

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

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 player. To resume playback, call the play method.

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

audioPlayerEndInterruption:withFlags:

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

- (void)audioPlayerEndInterruption:(AVAudioPlayer *)player withFlags:(NSUInteger)flags
Parameters
player

The audio player 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

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 player. To resume playback, call the play 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 audioPlayerEndInterruption: method.

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