SFSDKStoreConfig Class Reference
Inherits from | NSObject |
---|---|
Declared in | SFSDKStoreConfig.h |
Overview
Class encapsulating a SmartStore schema (soups).
Config expected JSON in a resource file in JSON with the following: { soups: [ { soupName: xxx indexes: [ { path: xxx type: xxx } ] } ] }
– initWithResourceAtPath:
Constructor
- (nullable instancetype)initWithResourceAtPath:(NSString *)path
Parameters
path |
to the config file |
---|
Return Value
instance of SFSDKStoreConfig
Declared In
SFSDKStoreConfig.h
– registerSoups:
Register the soup 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)registerSoups:(SFSmartStore *)store
Parameters
store |
to register soups in. |
---|
Declared In
SFSDKStoreConfig.h
– hasSoups
Check for soups in store
- (BOOL)hasSoups
Return Value
YES if soups are defined in config
Declared In
SFSDKStoreConfig.h