RRLargeObjectDataProviderDirectoryConfig

Objective-C

@interface RRLargeObjectDataProviderDirectoryConfig : NSObject

Swift

class RRLargeObjectDataProviderDirectoryConfig : NSObject

The configuration class for RRLargeObjectDataProviderDirectory. Use this class to load/save config files that specify resource files for given resource IDs.

  • Load a configuration from a JSON file

    Declaration

    Objective-C

    + (RRLargeObjectDataProviderDirectoryConfig *_Nullable)loadFromConfigFile:
        (nonnull NSString *)filePath;

    Swift

    class func load(fromConfigFile filePath: String) -> RRLargeObjectDataProviderDirectoryConfig?

    Parameters

    filePath

    The file path to the JSON file which should be loaded.

    Return Value

    The loaded configuration instance at success, nil otherwise..

  • Store a configuration to a JSON file

    Declaration

    Objective-C

    - (BOOL)storeToConfigFile:(nonnull NSString *)filePath
             didFailWithError:(NSError *_Nullable *_Nullable)error;

    Swift

    func store(toConfigFile filePath: String) throws

    Parameters

    filePath

    The file path the JSON file should be stored to.

    error

    An optional pointer to an NSError pointer. When this method fails, it will set an NSError instance to this pointer if provided.

    Return Value

    YES if successful, NO otherwise.

  • Creates a template config file that can then be edited manually. Use this method as a starting point when creating a custom config file.

    Declaration

    Objective-C

    + (BOOL)createTemplateConfigFile:(nonnull NSString *)filePath
                    didFailWithError:(NSError *_Nullable *_Nullable)error;

    Swift

    class func createTemplateConfigFile(_ filePath: String) throws

    Parameters

    filePath

    The file path the template JSON file should be stored to.

    error

    An optional pointer to an NSError pointer. When this method fails, it will set an NSError instance to this pointer if provided.

    Return Value

    YES if successful, NO otherwise.