Platforms to show: All Mac Windows Linux Cross-Platform

Back to CKQuerySubscriptionMBS class.

CKQuerySubscriptionMBS.Constructor(RecordType as String, predicate as NSPredicateMBS, querySubscriptionOptions as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes and returns a query-based subscription that monitors records with the specified options.

recordType: The string that identifies the type of records to track. You are responsible for naming your app’s record types. This parameter must not be nil or an empty string.
predicate: The matching criteria to apply to the records. This parameter must not be nil. For information about the operators that are supported in search predicates, see the discussion in CKQuery.
querySubscriptionOptions: A bitmask of the configuration options for the subscription. Specify at least one of the following values: CKSubscriptionOptionsFiresOnRecordCreation, CKSubscriptionOptionsFiresOnRecordUpdate, or CKSubscriptionOptionsFiresOnRecordDeletion.

Returns a subscription object initialized to track record-related changes.

The object returned by this method is configured as a query-based subscription searching records in the target dabatase. The subscription monitors the specified type of records in all of the user’s record zones and generates push notifications when the search criteria are met.

See also:

CKQuerySubscriptionMBS.Constructor(RecordType as String, predicate as NSPredicateMBS, subscriptionID as string, querySubscriptionOptions as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes and returns a query-based subscription that monitors records with the specified options.

recordType: The string that identifies the type of records to track. You are responsible for naming your app’s record types. This parameter must not be nil or an empty string.
predicate: The matching criteria to apply to the records. This parameter must not be nil. For information about the operators that are supported in search predicates, see the discussion in CKQuery.
subscriptionID: The unique name of the subscription. This string must be unique in the specified database and must not be nil.
querySubscriptionOptions: A bitmask of the configuration options for the subscription. Specify at least one of the following values: CKSubscriptionOptionsFiresOnRecordCreation, CKSubscriptionOptionsFiresOnRecordUpdate, or CKSubscriptionOptionsFiresOnRecordDeletion.

Returns a subscription object initialized to track record-related changes.

The object returned by this method is configured as a query-based subscription searching records in the target dabatase. The subscription monitors the specified type of records in all of the user’s record zones and generates push notifications when the search criteria are met.

See also:

CKQuerySubscriptionMBS.copy as CKQuerySubscriptionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a copy of this object.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...