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 implementation

    Tells the delegate that fetching data from CloudKit is about to begin

    Default Implementation

    Declaration

    Swift

    func willSyncFromCloud()
  • didSyncFromCloud() Default implementation

    Tells the delegate that data fetching from CloudKit and updating local objects processes are now completed

    Default Implementation

    Declaration

    Swift

    func didSyncFromCloud()
  • willSyncToCloud() Default implementation

    Tells 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 implementation

    Tells the delegate that data has been uploaded to CloudKit

    Default Implementation

    Declaration

    Swift

    func didSyncToCloud()
  • error(error:module:) Default implementation

    Tells 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 or CKError

    module

    framework’s module that throwed an error