SFSDKSyncsConfig Class Reference

Inherits from NSObject
Declared in SFSDKSyncsConfig.h

Overview

Class encapsulating syncs definition.

Config expected in a resource file in JSON with the following: { syncs: [ { syncType: syncUp | syncDown syncName: xxx soupName: yyy target: { depends on target - see SFSyncTarget } options: { also depends on target - see SFSyncOptions } } ] }

– initWithResourceAtPath:

Constructor for config stored in resource file

- (nullable instancetype)initWithResourceAtPath:(NSString *)path

Parameters

path

to the config file

Return Value

instance of SFSDKSyncsConfig

Declared In

SFSDKSyncsConfig.h

– createSyncs:

Create the syncs from the config in the given store NB: only feedback is through the logs - the config is static so getting it right is something the developer should do while writing the app

- (void)createSyncs:(SFSmartStore *)store

Parameters

store

to create syncs in.

Declared In

SFSDKSyncsConfig.h

– hasSyncs

Check for syncs in config

- (BOOL)hasSyncs

Return Value

YES if syncs are defined in config

Declared In

SFSDKSyncsConfig.h