Instance Property

zoneID

The ID of the record zone to monitor.

Declaration

@NSCopying var zoneID: CKRecordZone.ID? { get set }

Discussion

The value of this property applies both to query-based subscriptions and zone-based subscriptions. Specifying a record zone limits the search scope to the records in that zone. In the case of a zone-based subscription, the search encompasses all records in the zone. For a query-based subscription, the search encompasses only records of a specific type in that zone.

For zone-based subscriptions, the value of this property is set automatically by the init(zoneID:options:) or init(zoneID:subscriptionID:options:) methods. For all other subscription types, the default value is nil. To apply a zone to a query-based subscriptions, you must assign a value explicitly.

See Also

Accessing the Subscription Search Parameters

var predicate: NSPredicate?

The matching criteria to apply to records.

Deprecated