Contents

load(options:completionHandler:)

Loads the cloud service setup view with the specified options.

Declaration

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

Parameters

  • options:

    A key that identifies the type of setup the user needs to do. See 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 Unknown, Cloudservicepermissiondenied, and Cloudservicenetworkconnectionfailed.

Mentioned in

See Also

Loading the setup view