RBToolbarSchema Class Reference

Inherits from NSObject
Declared in RBToolbarSchema.h

Overview

A schema that describes a toolbar.

Other Methods

  items

The items in the toolbar. The following types are supported: RBToolbarButtonItemSchema, RBToolbarToggleButtonItemSchema, RBToolbarCustomItemSchema.

@property (nonatomic, readonly, nonnull) NSArray *items

Declared In

RBToolbarSchema.h

  orientation

The orientation of the toolbar.

@property (nonatomic, readonly) RBOrientation orientation

Declared In

RBToolbarSchema.h

– initWithItems:orientation:

Initializes a new toolbar schema.

- (nonnull instancetype)initWithItems:(nonnull NSArray *)items orientation:(RBOrientation)orientation

Parameters

items

The item schemas for the toolbar. The following types are supported: RBToolbarButtonItemSchema, RBToolbarToggleButtonItemSchema`, RBToolbarCustomItemSchema.

orientation

The orientation of the toolbar.

Return Value

The initialized toolbar schema.

Declared In

RBToolbarSchema.h

FlexiSchema Methods

– flexiSchemaWithViews:

The required schema for an RBLayoutFlexiPositioner object to display this element of the toolbar schema.

- (nonnull RBLayoutFlexiPositionerSchema *)flexiSchemaWithViews:(nonnull NSArray<UIView*> *)views

Parameters

views

An array of UIView’s that are to be used by the schema.

Return Value

A newly initialized RBLayoutFlexiPositionerSchema object representing the toolbar elements.

Declared In

RBToolbarSchema+FlexiSchema.h