Index

RBThemeFileCollection.h

Classes


RBThemeFileCollection

Loads the theme include file routes and builds an ordered and categorized collection of theme files for loading.

Properties

Post fixes that are to be used.
public overridePostfixes [String]? { get }

All of the filenames of all types of theme file.
public allFilenames [String]? { get }

All of the filenames of the theme include files.
public includeFilenames [String]? { get }

All of the filenames of the theme files.
public themeFilenames [String]? { get }

Functions

Initializes a new theme file collection by searching the bundle with given root set file.
@param fileName : File name containing the theme configuration file within the bundle e.g. themeset.json.
@param error : A pointer to assign a NSError object to in the event of an error.
@returns The initialized theme file collection object.
- (nonnull instancetype)initWithConfig:(nonnull NSString *)fileName error:(NSError * _Nullable * _Nullable)error;

Initializes a new theme file collection by loading from a serialized collection.
@param dictionary : The serialized collection.
@returns The initialized theme file collection object.
- (nonnull instancetype)initWithSerializedDictionary:(nonnull NSDictionary<NSString *, NSArray<NSString *>*> *)dictionary;

Compares the receiver to the given instance of RBThemeFileCollection and determines whether they are identical.
@param collection : The RBThemeFileCollection object to compare the receiver to.
@returns Whether or not the two RBThemeFileCollection objects are identical.
- (BOOL)identicalTo:(nonnull RBThemeFileCollection *)collection;

Imports the theme files in the collection to the given RBThemeSet object.
@param themeSet : The RBThemeSet object to import to.
@param error : A pointer to assign a NSError object to in the event of an error.
- (void)importInto:(nonnull RBThemeSet *)themeSet error:(NSError * _Nullable * _Nullable)error;