Contents

becomeActiveIfPossible(completion:)

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

Declaration

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

Parameters

  • completion:

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

See Also

Managing the active state