RBMenuSegmentButtonSchema Class Reference

Inherits from NSObject
Declared in RBMenuSegmentButtonSchema.h

Overview

A menu button schema.

  identifier

The unique identifier of the button. Identifier is also used as theme identifier within the segment theme.

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

Declared In

RBMenuSegmentButtonSchema.h

  title

The title for the button that will be created from this schema.

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

Declared In

RBMenuSegmentButtonSchema.h

  themeOverrides

Theme values to apply after any other prior theming has been applied.

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

Declared In

RBMenuSegmentButtonSchema.h

  custom

The custom cell to use instead of the default (RBBaseCellView).

@property (nonatomic, readonly, nullable) RBBaseCellView *custom

Declared In

RBMenuSegmentButtonSchema.h

  canBeToggled

Indicates that is is a schema that can be toggled.

@property (nonatomic, readonly) BOOL canBeToggled

Declared In

RBMenuSegmentButtonSchema.h

– initWithIdentifier:title:canBeToggled:themeOverrides:

Initializes a new menu button schema.

- (nonnull instancetype)initWithIdentifier:(nonnull NSString *)identifier title:(nullable NSString *)title canBeToggled:(BOOL)canBeToggled themeOverrides:(nullable NSDictionary *)themeOverrides

Parameters

identifier

The unique identifier of the button.

title

The title of the button.

canBeToggled

Whether or not the button can be toggled.

themeOverrides

Theme values to apply after any other prior theming has been applied.

Return Value

The initialized menu button schema.

Declared In

RBMenuSegmentButtonSchema.h

– initCustomWithIdentifier:custom:themeOverrides:

Initializes a new custom button schema.

- (nonnull instancetype)initCustomWithIdentifier:(nonnull NSString *)identifier custom:(nonnull RBBaseCellView *)custom themeOverrides:(nullable NSDictionary *)themeOverrides

Parameters

identifier

The unique identifier of the button.

custom

The custom cell view.

themeOverrides

Theme values to apply after any other prior theming has been applied.

Return Value

The initialized menu custom button schema.

Declared In

RBMenuSegmentButtonSchema.h

+ buttonWithIdentifier:title:canBeToggled:themeOverrides:

Initializes a new menu button schema.

+ (nonnull RBMenuSegmentButtonSchema *)buttonWithIdentifier:(nonnull NSString *)identifier title:(nullable NSString *)title canBeToggled:(BOOL)canBeToggled themeOverrides:(nullable NSDictionary<NSString*,id> *)themeOverrides

Parameters

identifier

The unique identifier of the button.

title

The title of the button.

canBeToggled

Whether or not the button can be toggled.

themeOverrides

Theme values to apply after any other prior theming has been applied.

Return Value

The initialized menu button schema.

Declared In

RBMenuSegmentButtonSchema.h