Class

SKCloudServiceController

An SKCloudServiceController object is used to determine the current capabilities of the user’s music library, such as if the device allows playback of Apple Music catalog tracks and the addition of tracks to the library.

Symbols

Getting Authorization to Access the Music Library

class func authorizationStatus()

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

class func requestAuthorization((SKCloudServiceAuthorizationStatus) -> Void)

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

Determining Capabilities

func requestCapabilities(completionHandler: (SKCloudServiceCapability, Error?) -> Void)

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

Constants

SKCloudServiceAuthorizationStatus

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

SKCloudServiceCapability

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

Notifications

static let SKStorefrontIdentifierDidChange: NSNotification.Name

Called when the storefront identifier associated with the device changes.

static let SKCloudServiceCapabilitiesDidChange: NSNotification.Name

Called when the capabilities associated with the music library on the device change.

Relationships

Inherits From

Conforms To