Contents

endInterruption()

Called after your audio session interruption ends.

Declaration

optional func endInterruption()

Discussion

The endInterruption(withFlags:) method provides you with more information upon interruption end than this method does. Apple recommends that you use endInterruption(withFlags:) instead of this method.

If you implement the endInterruption(withFlags:) method, that method is called instead of this one when an interruption ends.

To resume using audio after an interruption ends, you must ensure that your audio session is active. AVAudioPlayer and AVAudioRecorder instances reactivate your audio session automatically when an interruption ends. If you are using another audio technology, such as OpenAL, audio units, or audio queues, you must reactivate your audio session yourself before you can again use audio.

You can also use this method to update the user interface and application state, as necessary.

See Also

Delegate Methods