Class

SKCloudServiceController

An object that determines the current capabilities of the user’s music library.

Declaration

@interface SKCloudServiceController : NSObject

Overview

Use an SKCloudServiceController object to determine the current capabilities of the user’s music library, like whether the device allows playback of Apple Music catalog tracks and the addition of tracks to the library.

Topics

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.

SKCloudServiceAuthorizationStatus

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

Determining Capabilities

- requestUserTokenForDeveloperToken:completionHandler:

Returns a user token that you use to access personalized Apple Music content.

- requestStorefrontCountryCodeWithCompletionHandler:

Gets the country code for the storefront associated with a user's iTunes account.

- requestCapabilitiesWithCompletionHandler:

Gets the current capabilities associated with the music library on the device.

SKCloudServiceCapability

Constants that specify the current capabilities of the user’s music library on the device.

- requestStorefrontIdentifierWithCompletionHandler:

Gets the device’s storefront identifier.

Notifications

SKStorefrontIdentifierDidChangeNotification

A notification name for indicating a change in the storefront identifier associated with the device.

SKCloudServiceCapabilitiesDidChangeNotification

A notification name for indicating a change in the capabilities associated with the music library on the device.

SKStorefrontCountryCodeDidChangeNotification

A notification name for indicating a change in the storefront country code associated with the device.

Relationships

Inherits From