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

Discussion

The available themes by their name.

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

Discussion

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

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.

Discussion

Imports theme data with the given name.

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.

Discussion

Processes the pending themes and constants and makes them available.

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.

Discussion

Serializes the pre-processed themes and constants in the 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.

Discussion

Deserializes and imports a serialized theme set.

Declared In

RBThemeSet.h