Sync
class Sync
Based on a query, Sync checks whether it still has the latest version of the resulting Items. It does this asynchronous and in the background, items are updated automatically.
-
Cache Object used to fetch resultsets
Declaration
Swift
public var cache: Cache?
-
Initialization of the cache
Declaration
Swift
init(_ api: PodAPI)
Parameters
api
api Object
rlm
local Realm database object
-
Undocumented
Declaration
Swift
public func load()
-
Schedule a query to sync the resulting Items from the pod
Declaration
Swift
public func syncQuery( _ datasource: Datasource, auditable: Bool = true, _ callback: (() -> Void)? = nil )
Parameters
datasource
QueryOptions used to perform the query
-
Undocumented
Declaration
Swift
public func clearSyncCache()
-
Schedule a syncing round
Remark
currently calls mock codeDeclaration
Swift
public func schedule(long: Bool = false)
-
Undocumented
Declaration
Swift
public func syncFilesFromPod(_ callback: @escaping (Error?) -> Void)
-
Undocumented
Declaration
Swift
public func syncFilesToPod(_ callback: @escaping (Error?) -> Void)
-
Undocumented
Declaration
Swift
public func syncAllFromPod(_ callback: @escaping () -> Void)
-
Undocumented
Declaration
Swift
public func syncFromPod()