Platforms to show: All Mac Windows Linux Cross-Platform

Back to CKFetchNotificationChangesOperationMBS class.

CKFetchNotificationChangesOperationMBS.Constructor(previousServerChangeToken as CKServerChangeTokenMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes and returns an operation object set to fetch notification changes.

previousServerChangeToken: The change token from a previous fetch operation, or nil to fetch all changes. When you specify a change token, the operation object fetches only the changes that occurred since the change token was generated.

Returns an initialized operation object.

The first time you fetch notifications, specify nil for the previousServerChangeToken to get information about all push notifications that have been sent. When that operation finishes executing, it passes a change token to your completion block. Save that change token and use it to initialize new operation objects that fetch only the newly generated notification objects.

If you mark one or more notifications as read using a CKMarkNotificationsReadOperationMBS object, those notifications are not returned, even if you specify nil for previousServerChangeToken.

CKFetchNotificationChangesOperationMBS.Destructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 21.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Destructor

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


The biggest plugin in space...