<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSStatusItem/expandedInterfaceSession",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSStatusItem(py)expandedInterfaceSession"
  },
  "title" : "expandedInterfaceSession"
}
-->

# expandedInterfaceSession

A session object that tracks the lifecycle of the status item’s active expanded interface.

```
var expandedInterfaceSession: NSStatusItemExpandedInterfaceSession? { get }
```

## Discussion

The status item sets this property to a valid session object before calling [`statusItem(_:didBegin:)`](/documentation/AppKit/NSStatusItemExpandedInterfaceDelegate/statusItem(_:didBegin:)) on the [`expandedInterfaceDelegate`](/documentation/AppKit/NSStatusItem/expandedInterfaceDelegate), and sets the property to `nil` before calling [`statusItemDidEndExpandedInterfaceSession(_:animated:)`](/documentation/AppKit/NSStatusItemExpandedInterfaceDelegate/statusItemDidEndExpandedInterfaceSession(_:animated:)).

---

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)