CloudCoreDelegate
public protocol CloudCoreDelegate: class
Delegate for framework that can be used for proccesses tracking and error handling.
Maybe usefull to activate UIApplication.networkActivityIndicatorVisible
.
All methods are optional.
-
willSyncFromCloud()
Default implementationTells the delegate that fetching data from CloudKit is about to begin
Default Implementation
Declaration
Swift
func willSyncFromCloud()
-
didSyncFromCloud()
Default implementationTells the delegate that data fetching from CloudKit and updating local objects processes are now completed
Default Implementation
Declaration
Swift
func didSyncFromCloud()
-
willSyncToCloud()
Default implementationTells the delegate that conversion operations (NSManagedObject to CKRecord) and data uploading to CloudKit is about to begin
Default Implementation
Declaration
Swift
func willSyncToCloud()
-
didSyncToCloud()
Default implementationTells the delegate that data has been uploaded to CloudKit
Default Implementation
Declaration
Swift
func didSyncToCloud()
-
error(error:module:)
Default implementationTells the delegate that error has been occured, maybe called multiple times
Default Implementation
Declaration
Swift
func error(error: Error, module: Module?)
Parameters
error
in most cases contains
CloudCoreError
orCKError
module
framework’s module that throwed an error