Skip to main content

CloudKitDatabaseAdapter

@objc public protocol CloudKitDatabaseAdapter 

Requirements#

add(_:​)#

See https:​//developer.apple.com/documentation/cloudkit/ckdatabase/1449116-add

func add(_ operation: CKDatabaseOperation)

save(zone:​completionHandler:​)#

See https:​//developer.apple.com/documentation/cloudkit/ckdatabase/1449114-save

func save(zone: CKRecordZone, completionHandler: @escaping (CKRecordZone?, Error?) -> Void)

fetch(withRecordZoneID:​completionHandler:​)#

See https:​//developer.apple.com/documentation/cloudkit/ckdatabase/1449104-fetch

func fetch(withRecordZoneID zoneID: CKRecordZone.ID, completionHandler: @escaping (CKRecordZone?, Error?) -> Void)

fetch(withRecordID:​completionHandler:​)#

See https:​//developer.apple.com/documentation/cloudkit/ckdatabase/1449126-fetch

func fetch(withRecordID recordID: CKRecord.ID, completionHandler: @escaping (CKRecord?, Error?) -> Void)

delete(withRecordZoneID:​completionHandler:​)#

See https:​//developer.apple.com/documentation/cloudkit/ckdatabase/1449118-delete

func delete(withRecordZoneID zoneID: CKRecordZone.ID, completionHandler: @escaping (CKRecordZone.ID?, Error?) -> Void)

databaseScope#

See https:​//developer.apple.com/documentation/cloudkit/ckdatabase/1640398-databasescope

var databaseScope: CKDatabase.Scope 

fetchAllSubscriptions(completionHandler:​)#

See https:​//developer.apple.com/documentation/cloudkit/ckdatabase/1449110-fetchallsubscriptions

@available(iOS 10.0, macOS 10.12, watchOS 6.0, *)    func fetchAllSubscriptions(completionHandler: @escaping ([CKSubscription]?, Error?) -> Void)

save(subscription:​completionHandler:​)#

See https:​//developer.apple.com/documentation/cloudkit/ckdatabase/1449102-save

@available(iOS 10.0, macOS 10.12, watchOS 6.0, *)    func save(subscription: CKSubscription, completionHandler: @escaping (CKSubscription?, Error?) -> Void)

delete(withSubscriptionID:​completionHandler:​)#

See https:​//developer.apple.com/documentation/cloudkit/ckdatabase/3003590-delete

@available(iOS 10.0, macOS 10.12, watchOS 6.0, *)    func delete(withSubscriptionID subscriptionID: CKSubscription.ID, completionHandler: @escaping (String?, Error?) -> Void)