The context of an attempt to fetch changes from the server.
The sync engine might attempt to fetch changes from the server for many reasons.
For example, if you call ``CKSyncEngine-5sie5/fetchChanges(_:)``, it tries to fetch changes immediately.
Or if it receives a push notification, it schedules an automatic sync and fetch changes when the scheduler task runs.
Members (3)
get · iOS 17.2+
description
TypeScript
get description(): string
Swift declaration
var description: String { get }
A textual representation of this instance.
Calling this property directly is discouraged. Instead, convert an
instance of any type to a string by using the `String(describing:)`
initializer. This initializer works with any type, and uses the custom
`description` property for types that conform to
`CustomStringConvertible`:
struct Point: CustomStringConvertible {
let x: Int, y: Int
var description: String {
return "(\(x), \(y))"
}
}
let p = Point(x: 21, y: 30)
let s = String(describing: p)
print(s)
// Prints "(21, 30)"
The conversion of `p` to a string in the assignment to `s` uses the
`Point` type's `description` property.
get · iOS 17.0+
reason
TypeScript
get reason(): CKSyncEngine_SyncReason
Swift declaration
let reason: CKSyncEngine.SyncReason
The reason why the sync engine is attempting to fetch changes.
get · iOS 17.0+
options
TypeScript
get options(): CKSyncEngine_FetchChangesOptions
Swift declaration
let options: CKSyncEngine.FetchChangesOptions
The options being used for this attempt to fetch changes.