---
title: "load(options:completionHandler:)"
framework: storekit
role: symbol
role_heading: Instance Method
path: "storekit/skcloudservicesetupviewcontroller/load(options:completionhandler:)"
---

# load(options:completionHandler:)

Loads the cloud service setup view with the specified options.

## Declaration

```swift
func load(options: [SKCloudServiceSetupOptionsKey : Any] = [:], completionHandler: ((Bool, (any Error)?) -> Void)? = nil)
```

```swift
func load(options: [SKCloudServiceSetupOptionsKey : Any] = [:]) async throws -> Bool
```

## Parameters

- `options`: A key that identifies the type of setup the user needs to do. See doc://com.apple.storekit/documentation/StoreKit/SKCloudServiceSetupOptionsKey for possible values.
- `completionHandler`: A block that is called when the setup view has loaded. The block takes the following parameters: result A Boolean value that indicates whether the view controller has loaded the view and can be presented. error An error value that indicates the reason for failure. Possible values are doc://com.apple.storekit/documentation/StoreKit/SKError/Code/unknown, doc://com.apple.storekit/documentation/StoreKit/SKError/Code/cloudServicePermissionDenied, and doc://com.apple.storekit/documentation/StoreKit/SKError/Code/cloudServiceNetworkConnectionFailed.

## Mentioned in

Offering Apple Music Subscription in Your App

## Discussion

Discussion

## See Also

### Loading the setup view

- [Offering Apple Music Subscription in Your App](storekit/offering-apple-music-subscription-in-your-app.md)
- [SKCloudServiceSetupOptionsKey](storekit/skcloudservicesetupoptionskey.md)
- [SKArcadeService](storekit/skarcadeservice.md)
