Constants that specify the current capabilities of the user’s music library on the device.
SDKs
- iOS 9.3+
- Mac Catalyst 13.0+
- tvOS 9.3+
Framework
- Store
Kit
Declaration
struct SKCloudServiceCapability
Constants that specify the current capabilities of the user’s music library on the device.
SDKs
Framework
struct SKCloudServiceCapability
init(raw Value: UInt)
Initializes a cloud service capability with the provided raw value.
static var music Catalog Playback: SKCloud Service Capability
The device allows playback of Apple Music catalog tracks.
static var music Catalog Subscription Eligible: SKCloud Service Capability
The device allows subscription to the Apple Music catalog.
static var add To Cloud Music Library: SKCloud Service Capability
The device allows tracks to be added to the user’s music library.
func request User Token(for Developer Token: String, completion Handler: (String?, Error?) -> Void)
Returns a user token that you use to access personalized Apple Music content.
func request Storefront Country Code(completion Handler: (String?, Error?) -> Void)
Gets the country code for the storefront associated with a user's iTunes account.
func request Capabilities(completion Handler: (SKCloud Service Capability, Error?) -> Void)
Gets the current capabilities associated with the music library on the device.
func request Storefront Identifier(completion Handler: (String?, Error?) -> Void)
Gets the device’s storefront identifier.