requestCapabilities(completionHandler:)
Gets the current capabilities associated with the Music library on the device.
Declaration
func requestCapabilities(completionHandler: @escaping @Sendable (SKCloudServiceCapability, (any Error)?) -> Void)func requestCapabilities() async throws -> SKCloudServiceCapabilityParameters
- completionHandler:
A block that is called when the device’s current capabilities are determined. The block takes the following parameters:
- capabilities
Flags that indicate the device’s capabilities. For possible values, see Skcloudservicecapability.
- error
An error value that indicates the reason for failure. Possible values are Unknown, Cloudservicepermissiondenied, and Cloudservicenetworkconnectionfailed.