init(zoneID:subscriptionID:)
Creates a named subscription for all records in the specified record zone.
Declaration
convenience init(zoneID: CKRecordZone.ID, subscriptionID: CKSubscription.ID)Parameters
- zoneID:
The ID of the record zone that contains the records you want to monitor.
- subscriptionID:
The subscription’s name. It must be unique in the container and must not be an empty string.
Discussion
The subscription that this method returns is a zone-based subscription that generates push notifications when CloudKit changes any of the specified record zone’s records.