Asks the user for permission to access the music library on the device.
- iOS 9.3+
- Mac Catalyst 13.0+
- tvOS 9.3+
A block that is called when authorization is granted or denied by the user.
You can use this method to ask the user for permission to play Apple Music tracks or to add tracks to the music library.