init
TypeScriptstatic init(): CKModifyRecordZonesOperationSwift declarationinit()class · iOS 8.0+ · SDK 27.1
class CKModifyRecordZonesOperationstatic init(): CKModifyRecordZonesOperationSwift declarationinit()get modifyRecordZonesCompletionBlock(): (((arg0: (Array<CKRecordZone>) | null, arg1: (Array<CKRecordZone_ID>) | null, arg2: (NativeError) | null) => Promise<void>)) | nullSwift declarationvar modifyRecordZonesCompletionBlock: (([CKRecordZone]?, [CKRecordZone.ID]?, (any Error)?) -> Void)? { get set }set modifyRecordZonesCompletionBlock(value: (((arg0: (Array<CKRecordZone>) | null, arg1: (Array<CKRecordZone_ID>) | null, arg2: (NativeError) | null) => void)) | null)Swift declarationvar modifyRecordZonesCompletionBlock: (([CKRecordZone]?, [CKRecordZone.ID]?, (any Error)?) -> Void)? { get set }get recordZoneIDsToDelete(): (Array<CKRecordZone_ID>) | nullSwift declarationvar recordZoneIDsToDelete: [CKRecordZone.ID]? { get set }set recordZoneIDsToDelete(value: (Array<CKRecordZone_ID>) | null)Swift declarationvar recordZoneIDsToDelete: [CKRecordZone.ID]? { get set }get recordZonesToSave(): (Array<CKRecordZone>) | nullSwift declarationvar recordZonesToSave: [CKRecordZone]? { get set }set recordZonesToSave(value: (Array<CKRecordZone>) | null)Swift declarationvar recordZonesToSave: [CKRecordZone]? { get set }get perRecordZoneSaveBlock(): (((arg0: CKRecordZone_ID, arg1: SDKHandle) => Promise<void>)) | nullSwift declarationvar 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 perRecordZoneSaveBlock(value: (((arg0: CKRecordZone_ID, arg1: SDKHandle) => void)) | null)Swift declarationvar 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 perRecordZoneDeleteBlock(): (((arg0: CKRecordZone_ID, arg1: SDKHandle) => Promise<void>)) | nullSwift declarationvar 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 perRecordZoneDeleteBlock(value: (((arg0: CKRecordZone_ID, arg1: SDKHandle) => void)) | null)Swift declarationvar 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 modifyRecordZonesResultBlock(): (((arg0: SDKHandle) => Promise<void>)) | nullSwift declarationvar 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 modifyRecordZonesResultBlock(value: (((arg0: SDKHandle) => void)) | null)Swift declarationvar 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.
static initRecordZonesToSaveRecordZoneIDsToDelete(recordZonesToSave?: (Array<CKRecordZone>) | null, recordZoneIDsToDelete?: (Array<CKRecordZone_ID>) | null): CKModifyRecordZonesOperationSwift declarationconvenience 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.
No declarations were skipped in this snapshot.