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

# audioPlayerEndInterruption(_:withOptions:)

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

## Declaration

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

## Parameters

- `player`: The audio player with the interruption that ends.
- `flags`: The options 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(_:withFlags:)](avfaudio/avaudioplayerdelegate/audioplayerendinterruption(_:withflags:).md)
