init
TypeScriptstatic init(): CKFetchRecordZoneChangesOperationSwift declarationinit()class · iOS 10.0+ · SDK 27.1
class CKFetchRecordZoneChangesOperationstatic init(): CKFetchRecordZoneChangesOperationSwift declarationinit()static initRecordZoneIDsOptionsByRecordZoneID(recordZoneIDs: Array<CKRecordZone_ID>, optionsByRecordZoneID?: (NativeMap<CKRecordZone_ID, CKFetchRecordZoneChangesOperation_ZoneOptions>) | null): CKFetchRecordZoneChangesOperationSwift declarationconvenience init(recordZoneIDs: [CKRecordZone.ID], optionsByRecordZoneID: [CKRecordZone.ID : CKFetchRecordZoneChangesOperation.ZoneOptions]? = nil)get configurationsByRecordZoneID(): (NativeMap<CKRecordZone_ID, CKFetchRecordZoneChangesOperation_ZoneConfiguration>) | nullSwift declarationvar configurationsByRecordZoneID: [CKRecordZone.ID : CKFetchRecordZoneChangesOperation.ZoneConfiguration]? { get set }set configurationsByRecordZoneID(value: (NativeMap<CKRecordZone_ID, CKFetchRecordZoneChangesOperation_ZoneConfiguration>) | null)Swift declarationvar configurationsByRecordZoneID: [CKRecordZone.ID : CKFetchRecordZoneChangesOperation.ZoneConfiguration]? { get set }get fetchAllChanges(): booleanSwift declarationvar fetchAllChanges: Bool { get set }set fetchAllChanges(value: boolean)Swift declarationvar fetchAllChanges: Bool { get set }get fetchRecordZoneChangesCompletionBlock(): (((arg0: (NativeError) | null) => Promise<void>)) | nullSwift declarationvar fetchRecordZoneChangesCompletionBlock: (((any Error)?) -> Void)? { get set }set fetchRecordZoneChangesCompletionBlock(value: (((arg0: (NativeError) | null) => void)) | null)Swift declarationvar fetchRecordZoneChangesCompletionBlock: (((any Error)?) -> Void)? { get set }get optionsByRecordZoneID(): (NativeMap<CKRecordZone_ID, CKFetchRecordZoneChangesOperation_ZoneOptions>) | nullSwift declarationvar optionsByRecordZoneID: [CKRecordZone.ID : CKFetchRecordZoneChangesOperation.ZoneOptions]? { get set }set optionsByRecordZoneID(value: (NativeMap<CKRecordZone_ID, CKFetchRecordZoneChangesOperation_ZoneOptions>) | null)Swift declarationvar optionsByRecordZoneID: [CKRecordZone.ID : CKFetchRecordZoneChangesOperation.ZoneOptions]? { get set }get recordChangedBlock(): (((arg0: CKRecord) => Promise<void>)) | nullSwift declarationvar recordChangedBlock: ((CKRecord) -> Void)? { get set }set recordChangedBlock(value: (((arg0: CKRecord) => void)) | null)Swift declarationvar recordChangedBlock: ((CKRecord) -> Void)? { get set }get recordZoneChangeTokensUpdatedBlock(): (((arg0: CKRecordZone_ID, arg1: (CKServerChangeToken) | null, arg2: (ArrayBuffer) | null) => Promise<void>)) | nullSwift declarationvar recordZoneChangeTokensUpdatedBlock: ((CKRecordZone.ID, CKServerChangeToken?, Data?) -> Void)? { get set }set recordZoneChangeTokensUpdatedBlock(value: (((arg0: CKRecordZone_ID, arg1: (CKServerChangeToken) | null, arg2: (ArrayBuffer) | null) => void)) | null)Swift declarationvar recordZoneChangeTokensUpdatedBlock: ((CKRecordZone.ID, CKServerChangeToken?, Data?) -> Void)? { get set }get recordZoneFetchCompletionBlock(): (((arg0: CKRecordZone_ID, arg1: (CKServerChangeToken) | null, arg2: (ArrayBuffer) | null, arg3: boolean, arg4: (NativeError) | null) => Promise<void>)) | nullSwift declarationvar recordZoneFetchCompletionBlock: ((CKRecordZone.ID, CKServerChangeToken?, Data?, Bool, (any Error)?) -> Void)? { get set }set recordZoneFetchCompletionBlock(value: (((arg0: CKRecordZone_ID, arg1: (CKServerChangeToken) | null, arg2: (ArrayBuffer) | null, arg3: boolean, arg4: (NativeError) | null) => void)) | null)Swift declarationvar recordZoneFetchCompletionBlock: ((CKRecordZone.ID, CKServerChangeToken?, Data?, Bool, (any Error)?) -> Void)? { get set }get recordZoneIDs(): (Array<CKRecordZone_ID>) | nullSwift declarationvar recordZoneIDs: [CKRecordZone.ID]? { get set }set recordZoneIDs(value: (Array<CKRecordZone_ID>) | null)Swift declarationvar recordZoneIDs: [CKRecordZone.ID]? { get set }get fetchRecordZoneChangesResultBlock(): (((arg0: SDKHandle) => Promise<void>)) | nullSwift declarationvar fetchRecordZoneChangesResultBlock: ((Result<Void, any Error>) -> Void)? { get set }The closure to execute when the operation finishes. The closure has no return value and takes the following parameter: - A <doc://com.apple.documentation/documentation/swift/result> that contains either: - A successful `Result`, or - An error that contains information about a problem encountered retrieving the record zone changes. This closure executes only once, and represents your final opportunity to process the results. The closure executes serially with respect to the other closures of the operation. Set this property before you execute the operation or submit it to a queue.
set fetchRecordZoneChangesResultBlock(value: (((arg0: SDKHandle) => void)) | null)Swift declarationvar fetchRecordZoneChangesResultBlock: ((Result<Void, any Error>) -> Void)? { get set }The closure to execute when the operation finishes. The closure has no return value and takes the following parameter: - A <doc://com.apple.documentation/documentation/swift/result> that contains either: - A successful `Result`, or - An error that contains information about a problem encountered retrieving the record zone changes. This closure executes only once, and represents your final opportunity to process the results. The closure executes serially with respect to the other closures of the operation. Set this property before you execute the operation or submit it to a queue.
get recordZoneFetchResultBlock(): (((arg0: CKRecordZone_ID, arg1: SDKHandle) => Promise<void>)) | nullSwift declarationvar recordZoneFetchResultBlock: ((CKRecordZone.ID, Result<(serverChangeToken: CKServerChangeToken, clientChangeTokenData: Data?, moreComing: Bool), any Error>) -> Void)? { get set }The closure to execute when a record zone's fetch finishes. The closure returns no value and takes the following parameters: - term `recordZoneID`: The record zone's ID. - term `fetchChangesResult`: A <doc://com.apple.documentation/documentation/swift/result> that contains either: - A successful `Result` of - The change token to store and use in subsequent instances of ``CKFetchRecordZoneChangesOperation``. - The more recent client change token from the device. If the change token isn't the more recent change token you provided, the server might not have received the associated changes. - A Boolean that indicates whether this is the final record zone change. If ``CKFetchRecordZoneChangesOperation/fetchAllChanges`` is <doc://com.apple.documentation/documentation/swift/false>, it's the app's responsibility to create additional instances of ``CKFetchRecordZoneChangesOperation`` to fetch further changes. - An error object that contains information about a problem encountered retrieving the record zone changes. The app is responsible for saving the change token at the end of the operation and providing it to future uses of ``CKFetchRecordZoneChangesOperation``. Each time the closure executes, it executes serially with respect to the other closures of the operation. Set this property before you execute the operation or submit it to a queue.
set recordZoneFetchResultBlock(value: (((arg0: CKRecordZone_ID, arg1: SDKHandle) => void)) | null)Swift declarationvar recordZoneFetchResultBlock: ((CKRecordZone.ID, Result<(serverChangeToken: CKServerChangeToken, clientChangeTokenData: Data?, moreComing: Bool), any Error>) -> Void)? { get set }The closure to execute when a record zone's fetch finishes. The closure returns no value and takes the following parameters: - term `recordZoneID`: The record zone's ID. - term `fetchChangesResult`: A <doc://com.apple.documentation/documentation/swift/result> that contains either: - A successful `Result` of - The change token to store and use in subsequent instances of ``CKFetchRecordZoneChangesOperation``. - The more recent client change token from the device. If the change token isn't the more recent change token you provided, the server might not have received the associated changes. - A Boolean that indicates whether this is the final record zone change. If ``CKFetchRecordZoneChangesOperation/fetchAllChanges`` is <doc://com.apple.documentation/documentation/swift/false>, it's the app's responsibility to create additional instances of ``CKFetchRecordZoneChangesOperation`` to fetch further changes. - An error object that contains information about a problem encountered retrieving the record zone changes. The app is responsible for saving the change token at the end of the operation and providing it to future uses of ``CKFetchRecordZoneChangesOperation``. Each time the closure executes, it executes serially with respect to the other closures of the operation. Set this property before you execute the operation or submit it to a queue.
static initRecordZoneIDsConfigurationsByRecordZoneID(recordZoneIDs?: (Array<CKRecordZone_ID>) | null, configurationsByRecordZoneID?: (NativeMap<CKRecordZone_ID, CKFetchRecordZoneChangesOperation_ZoneConfiguration>) | null): CKFetchRecordZoneChangesOperationSwift declarationconvenience init(recordZoneIDs: [CKRecordZone.ID]? = nil, configurationsByRecordZoneID: [CKRecordZone.ID : CKFetchRecordZoneChangesOperation.ZoneConfiguration]? = nil)Creates an operation for fetching record zone changes. - Parameters: - recordZoneIDs: The IDs of the record zones that you want to query for changes. You can specify `nil` for this parameter. - configurationsByRecordZoneID: A dictionary that maps record zone IDs to their corresponding configurations. You can specify `nil` for this parameter. CloudKit configures the operation for retrieving all of the record zones that you specify. If you want to reduce the amount of data that CloudKit returns, provide zone configurations for each record zone.
get recordWasChangedBlock(): (((arg0: CKRecord_ID, arg1: SDKHandle) => Promise<void>)) | nullSwift declarationvar recordWasChangedBlock: ((CKRecord.ID, Result<CKRecord, any Error>) -> Void)? { get set }The closure to execute with the results of retrieving a record change. The closure returns no value and takes the following parameters: - A <doc://com.apple.documentation/documentation/swift/result> that contains either: - The changed record. If you specify a value for the ``CKFetchRecordZoneChangesOperation/ZoneConfiguration/desiredKeys`` property, the record contains only the corresponding fields. - An error that contains information about a problem encountered retrieving the changed record. The operation executes this closure once for each record in the record zone with changes since the previous fetch request. Each time the closure executes, it executes serially with respect to the other closures of the operation. If there aren't any record changes, this closure doesn't execute. Set this property before you execute the operation or submit it to a queue.
set recordWasChangedBlock(value: (((arg0: CKRecord_ID, arg1: SDKHandle) => void)) | null)Swift declarationvar recordWasChangedBlock: ((CKRecord.ID, Result<CKRecord, any Error>) -> Void)? { get set }The closure to execute with the results of retrieving a record change. The closure returns no value and takes the following parameters: - A <doc://com.apple.documentation/documentation/swift/result> that contains either: - The changed record. If you specify a value for the ``CKFetchRecordZoneChangesOperation/ZoneConfiguration/desiredKeys`` property, the record contains only the corresponding fields. - An error that contains information about a problem encountered retrieving the changed record. The operation executes this closure once for each record in the record zone with changes since the previous fetch request. Each time the closure executes, it executes serially with respect to the other closures of the operation. If there aren't any record changes, this closure doesn't execute. Set this property before you execute the operation or submit it to a queue.
get recordWithIDWasDeletedBlock(): (((arg0: CKRecord_ID, arg1: string) => Promise<void>)) | nullSwift declarationvar recordWithIDWasDeletedBlock: ((CKRecord.ID, CKRecord.RecordType) -> Void)? { get set }The closure to execute when a record no longer exists. The closure returns no value and takes the following parameters: - The deleted record's ID. - The deleted record's type. The operation executes this closure once for each record the server deletes after the previous change token. Each time the closure executes, it executes serially with respect to the other closures of the operation. If there aren't any record deletions, this closure doesn't execute. Set this property before you execute the operation or submit it to a queue.
set recordWithIDWasDeletedBlock(value: (((arg0: CKRecord_ID, arg1: string) => void)) | null)Swift declarationvar recordWithIDWasDeletedBlock: ((CKRecord.ID, CKRecord.RecordType) -> Void)? { get set }The closure to execute when a record no longer exists. The closure returns no value and takes the following parameters: - The deleted record's ID. - The deleted record's type. The operation executes this closure once for each record the server deletes after the previous change token. Each time the closure executes, it executes serially with respect to the other closures of the operation. If there aren't any record deletions, this closure doesn't execute. Set this property before you execute the operation or submit it to a queue.
No declarations were skipped in this snapshot.