ZDCSyncStatusNotificationInfo

@interface ZDCSyncStatusNotificationInfo : NSObject

When a ZDCSyncStatusChangedNotification is posed, an instance of this class is added the notification.userInfo.

You can extract the info via: notification.userInfo[kZDCSyncStatusNotificationInfo] as? ZDCSyncStatusNotificationInfo

  • Tells you which type of notification is being broadcast.

    The SyncManager publishes many different types of notifications. And its generally the case that if you need to listen for one of them, you need to listen to several of them.

    Declaration

    Objective-C

    @property (readonly, nonatomic) ZDCSyncStatusNotificationType type;

    Swift

    var type: ZDCSyncStatusNotificationType { get }
  • A reference to the localUser being pulled/pushed. (localUserID == ZDCLocalUser.uuid)

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull localUserID;

    Swift

    var localUserID: String { get }
  • The treeID of the system being pulled/pushed. (e.g. com.busines.myApp)

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull treeID;

    Swift

    var treeID: String { get }
  • If the notification type is PullStopped, this value contains information about whether or not the pull succeeded or failed.

    Declaration

    Objective-C

    @property (readonly, assign, nonatomic) ZDCPullResult pullResult;

    Swift

    var pullResult: ZDCPullResult { get }