Contents

init(subscriptionsToSave:subscriptionIDsToDelete:)

Creates an operation for saving and deleting the specified subscriptions.

Declaration

convenience init(subscriptionsToSave: [CKSubscription]? = nil, subscriptionIDsToDelete: [CKSubscription.ID]? = nil)

Parameters

  • subscriptionsToSave:

    The subscriptions to save or update. You can specify nil for this parameter.

  • subscriptionIDsToDelete:

    The IDs of the subscriptions to delete. You can specify nil for this parameter.

Discussion

The subscriptions that you want to save or delete must reside in the same container. CloudKit creates a subscription if you save one that doesn’t already exist. CloudKit returns an error if you try to delete a subscription that doesn’t exist.

See Also

Creating a Modify Subscriptions Operation