<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 - 27.0.0",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioSession/interruptionNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:@AVAudioSessionInterruptionNotification"
  },
  "title" : "interruptionNotification"
}
-->

# interruptionNotification

A notification the system posts when an audio interruption occurs.

```
class let interruptionNotification: NSNotification.Name
```

## Discussion

The notification’s user-information dictionary contains the [`AVAudioSessionInterruptionTypeKey`](/documentation/AVFAudio/AVAudioSessionInterruptionTypeKey) key. If the interruption type is [`AVAudioSession.InterruptionType.began`](/documentation/AVFAudio/AVAudioSession/InterruptionType/began), the system interrupted your app’s audio session and it’s no longer active. If the interruption type is [`AVAudioSession.InterruptionType.ended`](/documentation/AVFAudio/AVAudioSession/InterruptionType/ended), this dictionary also contains the [`AVAudioSessionInterruptionOptionKey`](/documentation/AVFAudio/AVAudioSessionInterruptionOptionKey) key.

See [Handling audio interruptions](/documentation/AVFAudio/handling-audio-interruptions) for more information on using this notification.

The system posts this notification on the main thread.

> Note:
> Starting in iOS 10, the system deactivates an app’s audio session when it suspends the app process. When the app starts running again, it receives an interruption notification that the system has deactivated its audio session. This notification is necessarily delayed in time because the system can only deliver it once the app is running again. If the system suspended your app’s audio session for this reason, the user-information dictionary contains the ``doc://com.apple.avfaudio/documentation/AVFAudio/AVAudioSessionInterruptionWasSuspendedKey`` key with a value of <doc://com.apple.documentation/documentation/Swift/true>.
> 
> If you configured your audio session to be nonmixable (the default behavior for the ``doc://com.apple.avfaudio/documentation/AVFAudio/AVAudioSession/Category-swift.struct/playback``, ``doc://com.apple.avfaudio/documentation/AVFAudio/AVAudioSession/Category-swift.struct/playAndRecord``, ``doc://com.apple.avfaudio/documentation/AVFAudio/AVAudioSession/Category-swift.struct/soloAmbient``, and ``doc://com.apple.avfaudio/documentation/AVFAudio/AVAudioSession/Category-swift.struct/multiRoute`` categories), deactivate your audio session if you’re not actively using audio when you go into the background. Doing so avoids having your audio session deactivated by the system (and receiving this somewhat confusing notification).

## Topics

### User Info Keys

[`AVAudioSessionInterruptionTypeKey`](/documentation/AVFAudio/AVAudioSessionInterruptionTypeKey)

A user info key to retrieve the interruption type.

[`AVAudioSessionInterruptionOptionKey`](/documentation/AVFAudio/AVAudioSessionInterruptionOptionKey)

A user info key to retrieve the interruption option.

[`AVAudioSessionInterruptionReasonKey`](/documentation/AVFAudio/AVAudioSessionInterruptionReasonKey)

A user info key to retrieve the interruption reason.

[`AVAudioSessionInterruptionWasSuspendedKey`](/documentation/AVFAudio/AVAudioSessionInterruptionWasSuspendedKey)

A user info key used to determine if the interruption is due to the audio session being deactivated when the system suspended the app.

### User Info Values

[`AVAudioSession.InterruptionType`](/documentation/AVFAudio/AVAudioSession/InterruptionType)

Constants that describe the type of an audio interruption.

[`AVAudioSession.InterruptionOptions`](/documentation/AVFAudio/AVAudioSession/InterruptionOptions)

Constants that indicate the state of an audio session after an interruption.

[`AVAudioSession.InterruptionReason`](/documentation/AVFAudio/AVAudioSession/InterruptionReason)

Constants that define the reasons for an audio session interruption.



---

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)