RBThemeSet Class Reference

Inherits from RBBaseThemeSet : NSObject
Declared in RBThemeSet.h

Overview

A theme set that pre-processes imported constants and themes.

  themes

The available themes by their name.

@property (nonatomic, readonly, nullable) NSDictionary<NSString*id> *themes

Declared In

RBThemeSet.h

  pendingThemes

The themes that are pending being processed and imported to the set.

@property (nonatomic, readonly, nullable) NSDictionary<NSString*id> *pendingThemes

Declared In

RBThemeSet.h

– import:withName:error:

Imports theme data with the given name.

- (void)import:(nonnull id)data withName:(nonnull NSString *)name error:(NSError *_Nullable *_Nullable)error

Parameters

data

The theme data.

name

The name of the theme data.

error

The error to set on error.

Declared In

RBThemeSet.h

– processPendingImportsWithError:

Processes the pending themes and constants and makes them available.

- (void)processPendingImportsWithError:(NSError *_Nullable *_Nullable)error

Parameters

error

A pointer to an NSError* object that is assigned in the event of an error.

Declared In

RBThemeSet.h

– serialize

Serializes the pre-processed themes and constants in the theme set.

- (nonnull NSData *)serialize

Return Value

The NSData object representing the serialized theme set.

Declared In

RBThemeSet.h

– deserializeAndImportFrom:

Deserializes and imports a serialized theme set.

- (void)deserializeAndImportFrom:(nonnull NSData *)themeSetData

Parameters

themeSetData

The NSData object representing the serialized theme set.

Declared In

RBThemeSet.h