Instance Method

initWithZoneID:subscriptionID:options:

Initializes and returns a subscription object that monitors the specified zone and has a custom name that you provide.

Declaration

- (instancetype)initWithZoneID:(CKRecordZoneID *)zoneID subscriptionID:(CKSubscriptionID)subscriptionID options:(CKSubscriptionOptions)subscriptionOptions;

Parameters

zoneID

The ID of the record zone containing the records you want to monitor. This parameter must not be nil.

subscriptionID

The unique name of the subscription object. This string must be unique for all other subscription objects in the container. This parameter must not be nil.

subscriptionOptions

The configuration options for the subscription. You must specify 0 for this parameter. Zone subscriptions currently do not support any options.

Return Value

A subscription object initialized to track changes to the contents of a record zone.

Discussion

The object returned by this method is configured as a zone-based subscription, which generates a push notification when any changes are made to the records in the specified zone.

See Also

Initializing a Zone-Based Subscription

- initWithZoneID:options:

Initializes and returns a subscription object that monitors all records in the specified record zone.

Deprecated