---
title: "audioPlayerEndInterruption(_:withFlags:)"
framework: avfaudio
role: symbol
role_heading: Instance Method
path: "avfaudio/avaudioplayerdelegate/audioplayerendinterruption(_:withflags:)"
---

# audioPlayerEndInterruption(_:withFlags:)

Tells the delegate when the audio session interruption ends with flags.

## Declaration

```swift
optional func audioPlayerEndInterruption(_ player: AVAudioPlayer, withFlags flags: Int)
```

## Parameters

- `player`: The audio player with the interruption that ends.
- `flags`: The flags that indicate the state of the audio session.

## See Also

### Responding to Audio Interruptions

- [audioPlayerBeginInterruption(_:)](avfaudio/avaudioplayerdelegate/audioplayerbegininterruption(_:).md)
- [audioPlayerEndInterruption(_:)](avfaudio/avaudioplayerdelegate/audioplayerendinterruption(_:).md)
- [audioPlayerEndInterruption(_:withOptions:)](avfaudio/avaudioplayerdelegate/audioplayerendinterruption(_:withoptions:).md)
