SFSyncState Class Reference
Inherits from | NSObject |
---|---|
Conforms to | NSCopying |
Declared in | SFSyncState.h |
+ setupSyncsSoupIfNeeded:
Setup soup that keeps track of sync operations
+ (void)setupSyncsSoupIfNeeded:(SFSmartStore *)store
Declared In
SFSyncState.h
+ cleanupSyncsSoupIfNeeded:
Cleanup syncs soup if needed At startup, no sync could be running already If a sync is in the running state, we change it to stopped
+ (void)cleanupSyncsSoupIfNeeded:(SFSmartStore *)store
Declared In
SFSyncState.h
+ newSyncDownWithOptions:target:soupName:name:store:
Factory methods
+ (nullable SFSyncState *)newSyncDownWithOptions:(SFSyncOptions *)options target:(SFSyncDownTarget *)target soupName:(NSString *)soupName name:(nullable NSString *)name store:(SFSmartStore *)store
Declared In
SFSyncState.h
+ newSyncUpWithOptions:target:soupName:name:store:
+ (nullable SFSyncState *)newSyncUpWithOptions:(SFSyncOptions *)options target:(SFSyncUpTarget *)target soupName:(NSString *)soupName name:(nullable NSString *)name store:(SFSmartStore *)store
+ newSyncUpWithOptions:soupName:store:
+ (nullable SFSyncState *)newSyncUpWithOptions:(SFSyncOptions *)options soupName:(NSString *)soupName store:(SFSmartStore *)store
+ byId:store:
Methods to save/retrieve/delete from smartstore
+ (nullable SFSyncState *)byId:(NSNumber *)syncId store:(SFSmartStore *)store
Declared In
SFSyncState.h
+ getSyncsWithStatus:status:
+ (NSArray<SFSyncState*> *)getSyncsWithStatus:(SFSmartStore *)store status:(SFSyncStateStatus)status
+ newFromDict:
Methods to translate to/from dictionary
+ (nullable SFSyncState *)newFromDict:(NSDictionary *)dict
Declared In
SFSyncState.h
+ syncTypeFromString:
Enum to/from string helper methods
+ (SFSyncStateSyncType)syncTypeFromString:(NSString *)syncType
Declared In
SFSyncState.h