One Logo Pool Ball
CloudKit · IOS API REFERENCE

CKFetchRecordZonesOperation

class · iOS 8.0+ · SDK 27.1

class CKFetchRecordZonesOperation

Members (11)

static · iOS 8.0+

fetchAllRecordZonesOperation

TypeScript
static fetchAllRecordZonesOperation(): CKFetchRecordZonesOperation
Swift declaration
class func fetchAllRecordZonesOperation() -> Self
init · iOS 8.0+

init

TypeScript
static init(): CKFetchRecordZonesOperation
Swift declaration
init()
init · iOS 8.0+

init

TypeScript
static initRecordZoneIDs(zoneIDs: Array<CKRecordZone_ID>): CKFetchRecordZonesOperation
Swift declaration
convenience init(recordZoneIDs zoneIDs: [CKRecordZone.ID])
get · iOS 8.0+ · Deprecated in iOS 15.0

fetchRecordZonesCompletionBlock

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

fetchRecordZonesCompletionBlock

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

recordZoneIDs

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

recordZoneIDs

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

perRecordZoneResultBlock

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

The closure to execute when a record zone becomes available. This property is a closure that returns no value and has the following parameters: - The ID of the record zone. - A <doc://com.apple.documentation/documentation/swift/result> that contains either a retrieved record zone, or an error that describes why CloudKit can't retrieve the record zone. The fetch operation executes this closure once for each record zone ID in the ``CKFetchRecordZonesOperation/recordZoneIDs`` property. Each time the closure executes, it executes serially with respect to the other closures 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+

perRecordZoneResultBlock

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

The closure to execute when a record zone becomes available. This property is a closure that returns no value and has the following parameters: - The ID of the record zone. - A <doc://com.apple.documentation/documentation/swift/result> that contains either a retrieved record zone, or an error that describes why CloudKit can't retrieve the record zone. The fetch operation executes this closure once for each record zone ID in the ``CKFetchRecordZonesOperation/recordZoneIDs`` property. Each time the closure executes, it executes serially with respect to the other closures 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+

fetchRecordZonesResultBlock

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

The closure to execute after CloudKit retrieves all of the record zones. This property is a closure that returns no value and has 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 zones. The fetch operation executes this closure only once. The closure executes before the operation's completion closure. The closure executes serially with respect to the other closures 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+

fetchRecordZonesResultBlock

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

The closure to execute after CloudKit retrieves all of the record zones. This property is a closure that returns no value and has 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 zones. The fetch operation executes this closure only once. The closure executes before the operation's completion closure. The closure executes serially with respect to the other closures 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.

Skipped declarations

No declarations were skipped in this snapshot.

All CloudKit types →