Contents

CKOperationGroup

An explicit association between two or more operations.

Declaration

class CKOperationGroup

Overview

In certain situations, you might want to perform several CloudKit operations together. Grouping operations in CloudKit doesn’t ensure atomicity.

For example, when building a Calendar app, you group the following actions:

  • Fetch records from CloudKit, which consists of numerous queries that fetch both new records and records with changes.

  • Perform incremental fetches of records in response to a push notification.

  • Update several records when the user saves a calendar event.

Associate operation groups with operations by setting their group property. Create a new operation group for each distinct user interaction.

Topics

Creating an Operation Group

Configuring an Operation Group

See Also

Core objects