Contents

fetchChanges(_:)

Fetches pending remote changes from the server.

Declaration

final func fetchChanges(_ options: CKSyncEngine.FetchChangesOptions = .init()) async throws

Parameters

  • options:

    The options to use when fetching changes. For more information, see Fetchchangesoptions.

Discussion

Use this method to request the sync engine immediately fetches all pending remote changes before your app continues. This isn’t necessary in normal use, as the engine automatically syncs your app’s records. It is useful, however, in scenarios where you require more control over sync, such as pull-to-refresh or unit tests.

See Also

Invoking manual sync operations