SyncEvent
public enum SyncEvent
Most of the information provided by SyncEvent’s is for testing purposes and for UI (e.g., for displaying download progress). Some of it, however, can be necessary for app operations.
-
This can repeat if there is a change to the files on the server (a master version update), and downloads restart.
Declaration
Swift
case willStartDownloads(numberContentDownloads: UInt, numberDownloadDeletions: UInt)
-
Declaration
Swift
case willStartUploads(numberContentUploads: UInt, numberUploadDeletions: UInt, numberSharingGroupOperatioms: UInt)
-
The attributes report the actual creation and update dates of the file– as established by the server. The
gone
field of attr will be nil.Declaration
Swift
case singleFileUploadComplete(attr: SyncAttributes)
-
The file upload you requested could not be completed because the file was gone on the server. See the non-nil gone field for the reason. In order to determine that a file could not be uploaded because the file was gone on the server, you must use this event. It is up to the client app to inform the user of this failed upload and/or queue up another attempt to upload the file (e.g., uploadImmutable).
Declaration
Swift
case singleFileUploadGone(attr: SyncAttributes)
-
Declaration
Swift
case singleAppMetaDataUploadComplete(fileUUID: String)
-
Declaration
Swift
case singleUploadDeletionComplete(fileUUID: UUIDString)
-
Declaration
Swift
case contentUploadsCompleted(numberOfFiles: Int)
-
Declaration
Swift
case uploadDeletionsCompleted(numberOfFiles: Int)
-
Declaration
Swift
public enum SharingGroupUploadOperation
-
Declaration
Swift
case sharingGroupUploadOperationCompleted(sharingGroup: SyncServer.SharingGroup, operation: SharingGroupUploadOperation)
-
Occurs for sharing users, when their owning user for a sharing group is removed from that group.
Declaration
Swift
case sharingGroupOwningUserRemoved(sharingGroup: SyncServer.SharingGroup)
-
Declaration
Swift
case syncDelayed
-
Declaration
Swift
case syncStarted
-
Occurs after call to stopSync, when the synchronization is just about to stop. syncDone will be the next event (if desired).
Declaration
Swift
case syncStopping
-
Declaration
Swift
case syncDone
-
Declaration
Swift
case refreshingCredentials
-
Reflects (a) getting an HTTP 503 (Service Unavailable) status from the server, and (b) successfully downloading text content from failoverMessageURL established with SyncServer.session.appLaunchSetup. The message in this case is the text content from that URL.
Declaration
Swift
case serverDown(message: String)
-
Declaration
Swift
case minimumIOSClientVersion(ServerVersion)