<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/DistributedNotificationCenter/Options",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSDistributedNotificationOptions"
  },
  "title" : "DistributedNotificationCenter.Options"
}
-->

# DistributedNotificationCenter.Options

These constants specify the behavior of notifications posted using the [`postNotificationName(_:object:userInfo:options:)`](/documentation/Foundation/DistributedNotificationCenter/postNotificationName(_:object:userInfo:options:)) method.

```
struct Options
```

## Topics

### Constants

[`NSNotificationDeliverImmediately`](/documentation/Foundation/NSNotificationDeliverImmediately)

When set, the notification is delivered immediately to all observers, regardless of their suspension behavior or suspension state. When not set, allows the normal suspension behavior of notification observers to take place.

[`NSDistributedNotificationDeliverImmediately`](/documentation/Foundation/DistributedNotificationCenter/Options/deliverImmediately)

When set, the notification is delivered immediately to all observers, regardless of their suspension behavior or suspension state.

[`NSNotificationPostToAllSessions`](/documentation/Foundation/NSNotificationPostToAllSessions)

When set, the notification is posted to all sessions. When not set, the notification is sent only to applications within the same login session as the posting task.

[`NSDistributedNotificationPostToAllSessions`](/documentation/Foundation/DistributedNotificationCenter/Options/postToAllSessions)

When set, the notification is posted to all sessions. When not set, the notification is sent only to applications within the same login session as the posting task.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`Sendable`](/documentation/Swift/Sendable)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`OptionSet`](/documentation/Swift/OptionSet)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

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)