Class

SKCloudServiceController

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

Overview

Use an SKCloudServiceController object 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.

Topics

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.

Constants

enum SKCloudServiceAuthorizationStatus

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

struct 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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software