<!--
{
  "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/MPNowPlayingSession/becomeActiveIfPossible(completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:objc(cs)MPNowPlayingSession(im)becomeActiveIfPossibleWithCompletion:"
  },
  "title" : "becomeActiveIfPossible(completion:)"
}
-->

# becomeActiveIfPossible(completion:)

Tells the system to make the session the active Now Playing session if possible.

```
func becomeActiveIfPossible(completion: (@Sendable (Bool) -> Void)? = nil)
```

```
func becomeActiveIfPossible() async -> Bool
```

## Parameters

`completion`

The completion handler the system calls after it processes the request.

---

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)