<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaPlayer",
  "identifier" : "/documentation/MediaPlayer/MPNowPlayingSessionDelegate/nowPlayingSessionDidChangeActive(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:objc(pl)MPNowPlayingSessionDelegate(im)nowPlayingSessionDidChangeActive:"
  },
  "title" : "nowPlayingSessionDidChangeActive(_:)"
}
-->

# nowPlayingSessionDidChangeActive(_:)

Tells the delegate that the session changed its active status.

```
optional func nowPlayingSessionDidChangeActive(_ nowPlayingSession: MPNowPlayingSession)
```

## Parameters

`nowPlayingSession`

The Now Playing session that changed.

## See Also

[`var isActive: Bool`](/documentation/MediaPlayer/MPNowPlayingSession/isActive)

A Boolean value that indicates whether the session is the app’s active Now Playing session.



---

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)