One Logo Pool Ball
CloudKit · IOS API REFERENCE

CKModifyRecordZonesOperation

class · iOS 8.0+ · SDK 27.1

class CKModifyRecordZonesOperation

Members (14)

init · iOS 8.0+

init

TypeScript
static init(): CKModifyRecordZonesOperation
Swift declaration
init()
get · iOS 8.0+ · Deprecated in iOS 15.0

modifyRecordZonesCompletionBlock

TypeScript
get modifyRecordZonesCompletionBlock(): (((arg0: (Array<CKRecordZone>) | null, arg1: (Array<CKRecordZone_ID>) | null, arg2: (NativeError) | null) => Promise<void>)) | null
Swift declaration
var modifyRecordZonesCompletionBlock: (([CKRecordZone]?, [CKRecordZone.ID]?, (any Error)?) -> Void)? { get set }
set · iOS 8.0+ · Deprecated in iOS 15.0

modifyRecordZonesCompletionBlock

TypeScript
set modifyRecordZonesCompletionBlock(value: (((arg0: (Array<CKRecordZone>) | null, arg1: (Array<CKRecordZone_ID>) | null, arg2: (NativeError) | null) => void)) | null)
Swift declaration
var modifyRecordZonesCompletionBlock: (([CKRecordZone]?, [CKRecordZone.ID]?, (any Error)?) -> Void)? { get set }
get · iOS 8.0+

recordZoneIDsToDelete

TypeScript
get recordZoneIDsToDelete(): (Array<CKRecordZone_ID>) | null
Swift declaration
var recordZoneIDsToDelete: [CKRecordZone.ID]? { get set }
set · iOS 8.0+

recordZoneIDsToDelete

TypeScript
set recordZoneIDsToDelete(value: (Array<CKRecordZone_ID>) | null)
Swift declaration
var recordZoneIDsToDelete: [CKRecordZone.ID]? { get set }
get · iOS 8.0+

recordZonesToSave

TypeScript
get recordZonesToSave(): (Array<CKRecordZone>) | null
Swift declaration
var recordZonesToSave: [CKRecordZone]? { get set }
set · iOS 8.0+

recordZonesToSave

TypeScript
set recordZonesToSave(value: (Array<CKRecordZone>) | null)
Swift declaration
var recordZonesToSave: [CKRecordZone]? { get set }
get · iOS 15.0+

perRecordZoneSaveBlock

TypeScript
get perRecordZoneSaveBlock(): (((arg0: CKRecordZone_ID, arg1: SDKHandle) => Promise<void>)) | null
Swift declaration
var perRecordZoneSaveBlock: ((CKRecordZone.ID, Result<CKRecordZone, any Error>) -> Void)? { get set }

The closure to execute when CloudKit saves a record zone. This property is a closure that returns no value and has the following parameters: - The ID of the record zone that CloudKit saves. - A <doc://com.apple.documentation/documentation/swift/result> that contains either - The record zone that CloudKit saves - An error that provides information about a failure saving the record zone. The closure executes once for each record zone in the ``CKModifyRecordZonesOperation/recordZonesToSave`` property. Each time the closure executes, it executes serially with respect to the other record zone completion blocks of the operation. If you intend to use this closure to process results, set it before you execute the operation or submit the operation to a queue.

set · iOS 15.0+

perRecordZoneSaveBlock

TypeScript
set perRecordZoneSaveBlock(value: (((arg0: CKRecordZone_ID, arg1: SDKHandle) => void)) | null)
Swift declaration
var perRecordZoneSaveBlock: ((CKRecordZone.ID, Result<CKRecordZone, any Error>) -> Void)? { get set }

The closure to execute when CloudKit saves a record zone. This property is a closure that returns no value and has the following parameters: - The ID of the record zone that CloudKit saves. - A <doc://com.apple.documentation/documentation/swift/result> that contains either - The record zone that CloudKit saves - An error that provides information about a failure saving the record zone. The closure executes once for each record zone in the ``CKModifyRecordZonesOperation/recordZonesToSave`` property. Each time the closure executes, it executes serially with respect to the other record zone completion blocks of the operation. If you intend to use this closure to process results, set it before you execute the operation or submit the operation to a queue.

get · iOS 15.0+

perRecordZoneDeleteBlock

TypeScript
get perRecordZoneDeleteBlock(): (((arg0: CKRecordZone_ID, arg1: SDKHandle) => Promise<void>)) | null
Swift declaration
var perRecordZoneDeleteBlock: ((CKRecordZone.ID, Result<Void, any Error>) -> Void)? { get set }

The closure to execute when CloudKit deletes a record zone. This property is a closure that returns no value and has the following parameters: - The ID of the record zone that CloudKit deletes. - A <doc://com.apple.documentation/documentation/swift/result> that contains either - A successful `Result` - An error that provides information about a failure deleting the record zone. The closure executes once for each record zone in the ``CKModifyRecordZonesOperation/recordZoneIDsToDelete`` property. Each time the closure executes, it executes serially with respect to the other record zone completion blocks of the operation. If you intend to use this closure to process results, set it before you execute the operation or submit the operation to a queue.

set · iOS 15.0+

perRecordZoneDeleteBlock

TypeScript
set perRecordZoneDeleteBlock(value: (((arg0: CKRecordZone_ID, arg1: SDKHandle) => void)) | null)
Swift declaration
var perRecordZoneDeleteBlock: ((CKRecordZone.ID, Result<Void, any Error>) -> Void)? { get set }

The closure to execute when CloudKit deletes a record zone. This property is a closure that returns no value and has the following parameters: - The ID of the record zone that CloudKit deletes. - A <doc://com.apple.documentation/documentation/swift/result> that contains either - A successful `Result` - An error that provides information about a failure deleting the record zone. The closure executes once for each record zone in the ``CKModifyRecordZonesOperation/recordZoneIDsToDelete`` property. Each time the closure executes, it executes serially with respect to the other record zone completion blocks of the operation. If you intend to use this closure to process results, set it before you execute the operation or submit the operation to a queue.

get · iOS 15.0+

modifyRecordZonesResultBlock

TypeScript
get modifyRecordZonesResultBlock(): (((arg0: SDKHandle) => Promise<void>)) | null
Swift declaration
var modifyRecordZonesResultBlock: ((Result<Void, any Error>) -> Void)? { get set }

The closure to execute after CloudKit modifies all of the record zones. The closure returns no 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 modifying the record zones. The closure executes only once, and represents your final opportunity to process the operation's results. The closure executes serially with respect to the other closures of the operation. Update the value of this property before you execute the operation or submit it to a queue.

set · iOS 15.0+

modifyRecordZonesResultBlock

TypeScript
set modifyRecordZonesResultBlock(value: (((arg0: SDKHandle) => void)) | null)
Swift declaration
var modifyRecordZonesResultBlock: ((Result<Void, any Error>) -> Void)? { get set }

The closure to execute after CloudKit modifies all of the record zones. The closure returns no 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 modifying the record zones. The closure executes only once, and represents your final opportunity to process the operation's results. The closure executes serially with respect to the other closures of the operation. Update the value of this property before you execute the operation or submit it to a queue.

init · iOS 8.0+

init

TypeScript
static initRecordZonesToSaveRecordZoneIDsToDelete(recordZonesToSave?: (Array<CKRecordZone>) | null, recordZoneIDsToDelete?: (Array<CKRecordZone_ID>) | null): CKModifyRecordZonesOperation
Swift declaration
convenience init(recordZonesToSave: [CKRecordZone]? = nil, recordZoneIDsToDelete: [CKRecordZone.ID]? = nil)

Creates an operation for modifying the specified record zones. - Parameters: - recordZonesToSave: The record zones to save. You can specify `nil` for this parameter. - recordZoneIDsToDelete: The IDs of the record zones to delete. You can specify `nil` for this parameter. The record zones you intend to save or delete must all reside in the same database, which you specify when you configure the operation. If you delete a record zone, CloudKit deletes any records it contains.

Skipped declarations

No declarations were skipped in this snapshot.

All CloudKit types →