---
title: suspended
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/distributednotificationcenter/suspended
---

# suspended

Suspends or resumes notification delivery.

## Declaration

```swift
var suspended: Bool { get set }
```

## Parameters

- `suspended`: doc://com.apple.documentation/documentation/Swift/true suspends notification delivery, doc://com.apple.documentation/documentation/Swift/false resumes it.

## Discussion

Discussion See DistributedNotificationCenter.SuspensionBehavior for details on how the receiver delivers notifications to their observers when normal notification delivery is suspended. The NSApplication class automatically suspends distributed notification delivery when the application is not active. Applications based on the Application Kit framework should let AppKit manage the suspension of notification delivery. Foundation-only programs may have occasional need to use this method.

## See Also

### Related Documentation

- [addObserver(_:selector:name:object:suspensionBehavior:)](foundation/distributednotificationcenter/addobserver(_:selector:name:object:suspensionbehavior:).md)
- [postNotificationName(_:object:userInfo:deliverImmediately:)](foundation/distributednotificationcenter/postnotificationname(_:object:userinfo:deliverimmediately:).md)
