RBLayoutFlexiPositionerRowSchema Class Reference

Inherits from NSObject
Declared in RBLayoutFlexiPositionerRowSchema.h

Overview

Describes the sizing and layout characteristics for a row and its cells.

Provides the ability to convert an NSArray containing strings into a RBLayoutFlexiPositionerRowSchema.

Other Methods

  cells

An array of RBLayoutFlexiPositionerCellSchema objects that describe sizing and layout for individual cells.

@property (nonatomic, readonly, nonnull) NSArray<RBLayoutFlexiPositionerCellSchema*> *cells

Declared In

RBLayoutFlexiPositionerRowSchema.h

  verticalMetric

A RBLayoutFlexiPositionerMetricSchema detailing the sizing for the overall row.

@property (nonatomic, readonly, nonnull) RBLayoutFlexiPositionerMetricSchema *verticalMetric

Declared In

RBLayoutFlexiPositionerRowSchema.h

– initWithCells:verticalMetricValue:

Initializes a new RBLayoutFlexiPositionerRowSchema object describing sizing and layout for a row and its cells.

- (nonnull instancetype)initWithCells:(nonnull NSArray<RBLayoutFlexiPositionerCellSchema*> *)cells verticalMetricValue:(nonnull RBLayoutFlexiPositionerMetricSchema *)verticalMetric

Parameters

cells

An array of RBLayoutFlexiPositionerCellSchema objects that describe sizing and layout for individual cells.

verticalMetric

A RBLayoutFlexiPositionerMetricSchema that details the sizing for the overall row.

Return Value

A newly initialized RBLayoutFlexiPositionerRowSchema object representing sizing and layout structure for a row.

Declared In

RBLayoutFlexiPositionerRowSchema.h

– initWithSchemaDictionary:

Initializes a new RBLayoutFlexiPositionerRowSchema object from a schema dictionary.

- (nonnull instancetype)initWithSchemaDictionary:(nonnull NSDictionary<NSString*,id> *)schemaDictionary

Parameters

schemaDictionary

A dictionary containing the key cells that contains an array of cell data.

Return Value

A newly initialized RBLayoutFlexiPositionerRowSchema object representing sizing and layout structure for a row.

Declared In

RBLayoutFlexiPositionerRowSchema.h

– schemaDictionary

Returns a representation of the sizing and layout of this instance as a schema dictionary.

- (nonnull NSDictionary<NSString*,id> *)schemaDictionary

Return Value

The schema as an NSDictionary

Declared In

RBLayoutFlexiPositionerRowSchema.h

StringSerialisation Methods

– initWithStringArray:

Initializes a new RBLayoutFlexiPositionerRowSchema object from an NSArray.

- (nonnull instancetype)initWithStringArray:(nonnull NSArray<NSString*> *)row

Parameters

row

An array of strings describing the row cell items. The first item describes the row itself.

Return Value

A newly initialized RBLayoutFlexiPositionerRowSchema object.

Declared In

RBLayoutFlexiPositionerSchema+StringSerialisation.h