ZDCSyncStatusNotificationType

enum ZDCSyncStatusNotificationType {}

The SyncManager broadcasts several types of notifications for changes in the sync state. This tells you what change caused the notification.

  • This notification type is broadcast when changes have been discovered in the cloud, and the PullManager has started working to update the treesystem state.

    Declaration

    Objective-C

    ZDCSyncStatusNotificationType_PullStarted

    Swift

    case pullStarted = 0
  • This notification type is broadcast after:

    • changes were discovered in the cloud
    • the PullManager attempted to update the treesystem state
    • and the PullManager is now done with its attempt (either success or failure)

    Declaration

    Objective-C

    ZDCSyncStatusNotificationType_PullStopped

    Swift

    case pullStopped = 1
  • This notification type is broadcast when the PushManager changes its active status. This happens when:

    • the PushManager sees new upload operations in the queue
    • AND it h started working on them

    Declaration

    Objective-C

    ZDCSyncStatusNotificationType_PushStarted

    Swift

    case pushStarted = 2
  • This notification type is broadcast when the PushManager changes its active status. This happens when:

    • the PushManager completes all the upload operations in its queue
    • OR the PushManager is stopped due to Internet reachability changes

    Declaration

    Objective-C

    ZDCSyncStatusNotificationType_PushStopped

    Swift

    case pushStopped = 3
  • This notification type is broadcast when the PushManger is manually paused.

    See

    -pausePushForLocalUserID:andAbortUploads:

    See

    -pausePushForAllLocalUsersAndAbortUploads:

    Declaration

    Objective-C

    ZDCSyncStatusNotificationType_PushPaused

    Swift

    case pushPaused = 4
  • This notification type is broadcast when the PushManager is manually resumed (after being previously paused).

    See

    -resumePushForLocalUserID:

    See

    -resumePushForAllLocalUsers

    Declaration

    Objective-C

    ZDCSyncStatusNotificationType_PushResumed

    Swift

    case pushResumed = 5
  • This notification is broadcast when a user’s syncingNodeID’s list changes. In other words, the list of nodes being synced (pushed or pulled) has changed.

    See

    -syncingNodeIDsForLocalUserID

    Declaration

    Objective-C

    ZDCSyncStatusNotificationType_SyncingNodeIDsChanged

    Swift

    case syncingNodeIDsChanged = 6