One Logo Pool Ball
CloudKit · IOS API REFERENCE

CKFetchDatabaseChangesOperation

class · iOS 10.0+ · SDK 27.1

class CKFetchDatabaseChangesOperation

Members (22)

init · iOS 10.0+

init

TypeScript
static init(): CKFetchDatabaseChangesOperation
Swift declaration
init()
init · iOS 10.0+

init

TypeScript
static initPreviousServerChangeToken(previousServerChangeToken?: (CKServerChangeToken) | null): CKFetchDatabaseChangesOperation
Swift declaration
convenience init(previousServerChangeToken: CKServerChangeToken?)
get · iOS 10.0+

changeTokenUpdatedBlock

TypeScript
get changeTokenUpdatedBlock(): (((arg0: CKServerChangeToken) => Promise<void>)) | null
Swift declaration
var changeTokenUpdatedBlock: ((CKServerChangeToken) -> Void)? { get set }
set · iOS 10.0+

changeTokenUpdatedBlock

TypeScript
set changeTokenUpdatedBlock(value: (((arg0: CKServerChangeToken) => void)) | null)
Swift declaration
var changeTokenUpdatedBlock: ((CKServerChangeToken) -> Void)? { get set }
get · iOS 10.0+

fetchAllChanges

TypeScript
get fetchAllChanges(): boolean
Swift declaration
var fetchAllChanges: Bool { get set }
set · iOS 10.0+

fetchAllChanges

TypeScript
set fetchAllChanges(value: boolean)
Swift declaration
var fetchAllChanges: Bool { get set }
get · iOS 10.0+ · Deprecated in iOS 15.0

fetchDatabaseChangesCompletionBlock

TypeScript
get fetchDatabaseChangesCompletionBlock(): (((arg0: (CKServerChangeToken) | null, arg1: boolean, arg2: (NativeError) | null) => Promise<void>)) | null
Swift declaration
var fetchDatabaseChangesCompletionBlock: ((CKServerChangeToken?, Bool, (any Error)?) -> Void)? { get set }
set · iOS 10.0+ · Deprecated in iOS 15.0

fetchDatabaseChangesCompletionBlock

TypeScript
set fetchDatabaseChangesCompletionBlock(value: (((arg0: (CKServerChangeToken) | null, arg1: boolean, arg2: (NativeError) | null) => void)) | null)
Swift declaration
var fetchDatabaseChangesCompletionBlock: ((CKServerChangeToken?, Bool, (any Error)?) -> Void)? { get set }
get · iOS 10.0+

previousServerChangeToken

TypeScript
get previousServerChangeToken(): (CKServerChangeToken) | null
Swift declaration
@NSCopying var previousServerChangeToken: CKServerChangeToken? { get set }
set · iOS 10.0+

previousServerChangeToken

TypeScript
set previousServerChangeToken(value: (CKServerChangeToken) | null)
Swift declaration
@NSCopying var previousServerChangeToken: CKServerChangeToken? { get set }
get · iOS 10.0+

recordZoneWithIDChangedBlock

TypeScript
get recordZoneWithIDChangedBlock(): (((arg0: CKRecordZone_ID) => Promise<void>)) | null
Swift declaration
var recordZoneWithIDChangedBlock: ((CKRecordZone.ID) -> Void)? { get set }
set · iOS 10.0+

recordZoneWithIDChangedBlock

TypeScript
set recordZoneWithIDChangedBlock(value: (((arg0: CKRecordZone_ID) => void)) | null)
Swift declaration
var recordZoneWithIDChangedBlock: ((CKRecordZone.ID) -> Void)? { get set }
get · iOS 10.0+

recordZoneWithIDWasDeletedBlock

TypeScript
get recordZoneWithIDWasDeletedBlock(): (((arg0: CKRecordZone_ID) => Promise<void>)) | null
Swift declaration
var recordZoneWithIDWasDeletedBlock: ((CKRecordZone.ID) -> Void)? { get set }
set · iOS 10.0+

recordZoneWithIDWasDeletedBlock

TypeScript
set recordZoneWithIDWasDeletedBlock(value: (((arg0: CKRecordZone_ID) => void)) | null)
Swift declaration
var recordZoneWithIDWasDeletedBlock: ((CKRecordZone.ID) -> Void)? { get set }
get · iOS 15.0+

recordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock

TypeScript
get recordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock(): (((arg0: CKRecordZone_ID) => Promise<void>)) | null
Swift declaration
var recordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock: ((CKRecordZone.ID) -> Void)? { get set }
set · iOS 15.0+

recordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock

TypeScript
set recordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock(value: (((arg0: CKRecordZone_ID) => void)) | null)
Swift declaration
var recordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock: ((CKRecordZone.ID) -> Void)? { get set }
get · iOS 11.0+

recordZoneWithIDWasPurgedBlock

TypeScript
get recordZoneWithIDWasPurgedBlock(): (((arg0: CKRecordZone_ID) => Promise<void>)) | null
Swift declaration
var recordZoneWithIDWasPurgedBlock: ((CKRecordZone.ID) -> Void)? { get set }
set · iOS 11.0+

recordZoneWithIDWasPurgedBlock

TypeScript
set recordZoneWithIDWasPurgedBlock(value: (((arg0: CKRecordZone_ID) => void)) | null)
Swift declaration
var recordZoneWithIDWasPurgedBlock: ((CKRecordZone.ID) -> Void)? { get set }
get · iOS 10.0+

resultsLimit

TypeScript
get resultsLimit(): number
Swift declaration
var resultsLimit: Int { get set }
set · iOS 10.0+

resultsLimit

TypeScript
set resultsLimit(value: number)
Swift declaration
var resultsLimit: Int { get set }
get · iOS 15.0+

fetchDatabaseChangesResultBlock

TypeScript
get fetchDatabaseChangesResultBlock(): (((arg0: SDKHandle) => Promise<void>)) | null
Swift declaration
var fetchDatabaseChangesResultBlock: ((Result<(serverChangeToken: CKServerChangeToken, moreComing: Bool), 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` of - The change token to store and use in subsequent instances of ``CKFetchDatabaseChangesOperation``. - A Boolean that indicates whether this is the final database change. If ``CKFetchDatabaseChangesOperation/fetchAllChanges`` is <doc://com.apple.documentation/documentation/swift/false>, it's the app's responsibility to create additional instances of ``CKFetchDatabaseChangesOperation`` to fetch further changes. - An error that contains information about a problem encountered retrieving the database 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 · iOS 15.0+

fetchDatabaseChangesResultBlock

TypeScript
set fetchDatabaseChangesResultBlock(value: (((arg0: SDKHandle) => void)) | null)
Swift declaration
var fetchDatabaseChangesResultBlock: ((Result<(serverChangeToken: CKServerChangeToken, moreComing: Bool), 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` of - The change token to store and use in subsequent instances of ``CKFetchDatabaseChangesOperation``. - A Boolean that indicates whether this is the final database change. If ``CKFetchDatabaseChangesOperation/fetchAllChanges`` is <doc://com.apple.documentation/documentation/swift/false>, it's the app's responsibility to create additional instances of ``CKFetchDatabaseChangesOperation`` to fetch further changes. - An error that contains information about a problem encountered retrieving the database 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.

Skipped declarations

No declarations were skipped in this snapshot.

All CloudKit types →