Contents

requestToBecomeSystemPrimary()

Requests to make this session the primary system media session.

Declaration

@MainActor func requestToBecomeSystemPrimary() async throws

Mentioned in

Discussion

Use this method to request that the system display this session prominently on the Lock Screen and in Control Center.

Your app’s primary session should match what your app is prominently displaying to the user in your interface.

For example, if your app has two playing sessions and the user has indicated they want to focus on one of those sessions, call requestToBecomeSystemPrimary on that session.