---
title: "becomeActiveIfPossible(completion:)"
framework: mediaplayer
role: symbol
role_heading: Instance Method
path: "mediaplayer/mpnowplayingsession/becomeactiveifpossible(completion:)"
---

# becomeActiveIfPossible(completion:)

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

## Declaration

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

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

## Parameters

- `completion`: The completion handler the system calls after it processes the request.

## See Also

### Managing the active state

- [isActive](mediaplayer/mpnowplayingsession/isactive.md)
- [canBecomeActive](mediaplayer/mpnowplayingsession/canbecomeactive.md)
