RBMenuSegmentToggleButtonSchema Class Reference

Inherits from NSObject
Declared in RBMenuSegmentToggleButtonSchema.h

Overview

A menu toggle 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

Discussion

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

Declared In

RBMenuSegmentToggleButtonSchema.h

  themeOverrides

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

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

Discussion

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

Declared In

RBMenuSegmentToggleButtonSchema.h

  initialSelected

Whether or not the button is initially selected.

@property (nonatomic, readonly) BOOL initialSelected

Discussion

Whether or not the button is initially selected.

Declared In

RBMenuSegmentToggleButtonSchema.h

  title

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

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

Discussion

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

Declared In

RBMenuSegmentToggleButtonSchema.h

– initWithIdentifier:title:initialSelected:themeOverrides:

Initializes a new menu toggle button schema.

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

Parameters

identifier

The unique identifier of the button.

title

The title of the button.

initialSelected

Whether or not the button should be selected initially.

themeOverrides

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

Return Value

The initialized menu toggle button schema.

Discussion

Initializes a new menu toggle button schema.

Declared In

RBMenuSegmentToggleButtonSchema.h