<!--
{
  "availability" : [
    "iOS: 9.3.0 - 18.0.0",
    "iPadOS: 9.3.0 - 18.0.0",
    "macCatalyst: 13.0.0 - 18.0.0",
    "macOS: 11.0.0 - 15.0.0",
    "tvOS: 9.3.0 - 18.0.0",
    "watchOS: 7.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SKCloudServiceController",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKCloudServiceController"
  },
  "title" : "SKCloudServiceController"
}
-->

# SKCloudServiceController

An object that determines the current capabilities of a person’s Music library.

```
class SKCloudServiceController
```

## Overview

Use an [`SKCloudServiceController`](/documentation/StoreKit/SKCloudServiceController) object to determine the current capabilities of a customer’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

[Requesting Access to Apple Music Library](/documentation/StoreKit/requesting-access-to-apple-music-library)

Prompt the customer to authorize access to Apple Music library.

[`authorizationStatus()`](/documentation/StoreKit/SKCloudServiceController/authorizationStatus())

Returns the type of authorization the customer has for accessing the Music library on the device.

[`requestAuthorization(_:)`](/documentation/StoreKit/SKCloudServiceController/requestAuthorization(_:))

Asks the customer for permission to access the Music library on the device.

[`SKCloudServiceAuthorizationStatus`](/documentation/StoreKit/SKCloudServiceAuthorizationStatus)

Constants that indicate the type of authorization the customer has for accessing the Music library.

### Determining capabilities

[Determining a person’s Apple Music capabilities](/documentation/StoreKit/determining-a-person-s-apple-music-capabilities)

Determine which Apple Music capabilities are available on a customer’s device.

[`requestUserToken(forDeveloperToken:completionHandler:)`](/documentation/StoreKit/SKCloudServiceController/requestUserToken(forDeveloperToken:completionHandler:))

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

[`requestStorefrontCountryCode(completionHandler:)`](/documentation/StoreKit/SKCloudServiceController/requestStorefrontCountryCode(completionHandler:))

Gets the country code for the storefront associated with a customer’s iTunes account.

[`requestCapabilities(completionHandler:)`](/documentation/StoreKit/SKCloudServiceController/requestCapabilities(completionHandler:))

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

[`SKCloudServiceCapability`](/documentation/StoreKit/SKCloudServiceCapability)

Constants that specify the current capabilities of the customer’s Music library on the device.

[`requestStorefrontIdentifier(completionHandler:)`](/documentation/StoreKit/SKCloudServiceController/requestStorefrontIdentifier(completionHandler:))

Gets the device’s storefront identifier.

[`requestPersonalizationToken(forClientToken:withCompletionHandler:)`](/documentation/StoreKit/SKCloudServiceController/requestPersonalizationToken(forClientToken:withCompletionHandler:))

### Notifications

  <doc://com.apple.documentation/documentation/Foundation/NSNotification/Name-swift.struct/SKStorefrontIdentifierDidChange>

  <doc://com.apple.documentation/documentation/Foundation/NSNotification/Name-swift.struct/SKCloudServiceCapabilitiesDidChange>

  <doc://com.apple.documentation/documentation/Foundation/NSNotification/Name-swift.struct/SKStorefrontCountryCodeDidChange>

[`SKStorefrontIdentifierDidChangeNotification`](/documentation/StoreKit/SKStorefrontIdentifierDidChangeNotification)

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

[`SKCloudServiceCapabilitiesDidChangeNotification`](/documentation/StoreKit/SKCloudServiceCapabilitiesDidChangeNotification)

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

[`SKStorefrontCountryCodeDidChangeNotification`](/documentation/StoreKit/SKStorefrontCountryCodeDidChangeNotification)

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)