CloudKitWorker
@available(watchOSApplicationExtension 3.0, *)
internal class CloudKitWorker
An interface to the CloudKit.
-
Constants that provide information regarding container type of cloud kit worker.
See moreDeclaration
Swift
@objc enum ContainerType : Int
-
An object representing the data store manager requesting this information.
Declaration
Swift
var dataStoreManager: DataStoreManager?
-
Asks the delegate for the cloud kit container record type of the data store manager.
Declaration
Swift
var recordIDDelegate: ((DataStoreManager, String) -> CKRecord.ID)?
-
Undocumented
Declaration
Swift
func create<T>(object: T, forKey key: String, forContainerType containerType: ContainerType, completionHandler: @escaping (_ isSuccessful: Bool, _ objectID: Any?, _ error: Error?) -> Void)
-
Undocumented
Declaration
Swift
func read<T>(forKey key: String, withObjectType objectType: T.Type, forContainerType containerType: ContainerType, completionHandler: @escaping (_ object: Any?, _ objectID: Any?, _ error: Error?) -> Void)
-
Undocumented
Declaration
Swift
func update<T>(object: T, forKey key: String, forContainerType containerType: ContainerType, completionHandler: @escaping (_ isSuccessful: Bool, _ objectID: Any?, _ error: Error?) -> Void)
-
Undocumented
Declaration
Swift
func delete<T>(forKey key: String, withObjectType objectType: T.Type, forContainerType containerType: ContainerType, completionHandler: @escaping (_ isSuccessful: Bool, _ objectID: Any?, _ error: Error?) -> Void)
-
Undocumented
Declaration
Swift
func deleteAll(forContainerType containerType: ContainerType, completionHandler: @escaping (_ isSuccessful: Bool, _ objectID: Any?, _ error: Error?) -> Void)