Enumeration

SKCloudServiceAuthorizationStatus

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

Declaration

typedef enum SKCloudServiceAuthorizationStatus : NSInteger {
    ...
} SKCloudServiceAuthorizationStatus;

Topics

Constants

SKCloudServiceAuthorizationStatusNotDetermined

The authorization type cannot be determined.

SKCloudServiceAuthorizationStatusDenied

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

SKCloudServiceAuthorizationStatusRestricted

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.

SKCloudServiceAuthorizationStatusAuthorized

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

+ authorizationStatus

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

+ requestAuthorization:

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