RBThemeSchemaState Class Reference

Inherits from NSObject
Declared in RBThemeSchemaState.h

Overview

Describes an object’s state that can be independantly themed.

  name

The name of the state.

@property (nonatomic, readonly, nonnull) NSString *name

Declared In

RBThemeSchemaState.h

  note

An optional note about the state.

@property (nonatomic, readonly, nullable) NSString *note

Declared In

RBThemeSchemaState.h

  subStates

If this state property has further states.

@property (nonatomic, readonly, nullable) NSArray<RBThemeSchemaState*> *subStates

Declared In

RBThemeSchemaState.h

– initWithName:note:

Initializes a new state theme schema.

- (nonnull instancetype)initWithName:(nonnull NSString *)name note:(nullable NSString *)note

Parameters

name

The name of the state.

note

An optional note about the state.

Return Value

The initialized schema object.

Declared In

RBThemeSchemaState.h

– dictionary

Serialises the theme schema state to a property list.

- (nonnull NSDictionary<NSString*,NSString*> *)dictionary

Return Value

The serialised theme schema state.

Declared In

RBThemeSchemaState.h

– addSubState:

Adds a sub state to this state.

- (void)addSubState:(nonnull RBThemeSchemaState *)state

Parameters

state

The sub state

Declared In

RBThemeSchemaState.h