Enumeration

SKCloudServiceAuthorizationStatus

Constants that indicate the type of authorization the user has set for accessing the music library.

Declaration

enum SKCloudServiceAuthorizationStatus : Int

Topics

Constants

case notDetermined

The authorization type cannot be determined.

case denied

The user does not authorize any access to their music library.

case restricted

Access to the music library is restricted in a way that the user cannot change, so your app should not prompt for authorization. An example of this situation is if the device is in an education mode.

case authorized

The user authorizes playback of Apple Music tracks and the addition of tracks to their music library.

See Also

Getting Authorization to Access the Music Library

class func authorizationStatus() -> SKCloudServiceAuthorizationStatus

Returns the type of authorization the user has set for accessing the music library on the device.

class func requestAuthorization((SKCloudServiceAuthorizationStatus) -> Void)

Asks the user for permission to access the music library on the device.