<!--
{
  "availability" : [
    "iOS: 4.0.0 - 6.0.0",
    "iPadOS: 4.0.0 - 6.0.0",
    "macCatalyst: 13.1.0 - 14.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioSessionDelegate/endInterruption(withFlags:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(pl)AVAudioSessionDelegate(im)endInterruptionWithFlags:"
  },
  "title" : "endInterruption(withFlags:)"
}
-->

# endInterruption(withFlags:)

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

```
optional func endInterruption(withFlags flags: Int)
```

## Parameters

`flags`

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

## Discussion

To resume using audio after an interruption ends, you must ensure that your audio session is active. [`AVAudioPlayer`](/documentation/AVFAudio/AVAudioPlayer) and [`AVAudioRecorder`](/documentation/AVFAudio/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.

If this delegate method receives the [`AVAudioSessionInterruptionFlags_ShouldResume`](/documentation/AVFAudio/AVAudioSessionInterruptionFlags_ShouldResume) constant in its `flags` parameter, the audio session is immediately ready to be used.

If you implement this method, it is called instead of the [`endInterruption()`](/documentation/AVFAudio/AVAudioSessionDelegate/endInterruption()) method when an interruption ends.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)