Instance Method

audioPlayerEndInterruption(_:)

Called after your audio session interruption ends.

Declaration

optional func audioPlayerEndInterruption(_ player: AVAudioPlayer)

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.

See Also

Handling Audio Interruptions

func audioPlayerBeginInterruption(AVAudioPlayer)

Called when an audio player is interrupted, such as by an incoming phone call.

Deprecated
func audioPlayerEndInterruption(AVAudioPlayer, withOptions: Int)

Called after your audio session interruption ends, with options indicating the state of the audio session.

Deprecated
func audioPlayerEndInterruption(AVAudioPlayer, withFlags: Int)

Called after your audio session interruption ends, with flags indicating the state of the audio session.

Deprecated