<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureSession/wasInterruptedNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:@AVCaptureSessionWasInterruptedNotification"
  },
  "title" : "wasInterruptedNotification"
}
-->

# wasInterruptedNotification

A notification the system posts when it interrupts a capture session.

```
class let wasInterruptedNotification: NSNotification.Name
```

## Discussion

Retrieve the underlying error from the notification’s user information dictionary using the key [`AVCaptureSessionInterruptionReasonKey`](/documentation/AVFoundation/AVCaptureSessionInterruptionReasonKey).

## Topics

### User-infomation keys

[`AVCaptureSessionInterruptionSystemPressureStateKey`](/documentation/AVFoundation/AVCaptureSessionInterruptionSystemPressureStateKey)

A key to retrieve a state value that indicates the system pressure level and contributing factors that caused the interruption.

[`AVCaptureSessionInterruptionReasonKey`](/documentation/AVFoundation/AVCaptureSessionInterruptionReasonKey)

Key to retrieve information about a capture interruption from a [`wasInterruptedNotification`](/documentation/AVFoundation/AVCaptureSession/wasInterruptedNotification) user info dictionary.

[`AVCaptureSession.InterruptionReason`](/documentation/AVFoundation/AVCaptureSession/InterruptionReason)

Constants identifying the reason a capture session was interrupted, found in an [`wasInterruptedNotification`](/documentation/AVFoundation/AVCaptureSession/wasInterruptedNotification) user info dictionary.



---

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)