requestAuthorization(_:)
Asks the customer for permission to access the Music library on the device.
Declaration
class func requestAuthorization(_ completionHandler: @escaping @Sendable (SKCloudServiceAuthorizationStatus) -> Void)class func requestAuthorization() async -> SKCloudServiceAuthorizationStatusParameters
- completionHandler:
A block that is called when authorization is granted or denied by the user.
Mentioned in
Discussion
You can use this method to ask the user for permission to play Apple Music tracks or to add tracks to the music library.