RBManagedFormSchema Class Reference

Inherits from NSObject
Conforms to NSCopying
Declared in RBManagedFormSchema.h

Overview

A managed form schema.

  themeIdentifier

The identifier of the theme to apply to the form prior to presenting it. When the schema is applied to a form this property has the effect of setting the managed forms theme identifier i.e. ‘managedForm.theme.identifier = themeIdentifier’.

@property (nonatomic, nullable) NSString *themeIdentifier

Discussion

The identifier of the theme to apply to the form prior to presenting it. When the schema is applied to a form this property has the effect of setting the managed forms theme identifier i.e. ‘managedForm.theme.identifier = themeIdentifier’.

Declared In

RBManagedFormSchema.h

  themeOverrides

Theme values to apply after any other prior theming has been applied. When the schema is applied to a form this property has the effect of applying the theme overrides to the forms theme.

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

Discussion

Theme values to apply after any other prior theming has been applied. When the schema is applied to a form this property has the effect of applying the theme overrides to the forms theme.

Declared In

RBManagedFormSchema.h

  initialValues

The initial form values.

@property (nonatomic, readonly, nonnull) NSDictionary *initialValues

Discussion

The initial form values.

Declared In

RBManagedFormSchema.h

  modalTransitionStyle

The UIModalTransitionStyle to use when displaying any modals such as the photo picker. Default = UIModalTransitionStyleCoverVertical.

@property (nonatomic) UIModalTransitionStyle modalTransitionStyle

Discussion

The UIModalTransitionStyle to use when displaying any modals such as the photo picker. Default = UIModalTransitionStyleCoverVertical.

Declared In

RBManagedFormSchema.h

  toolbarEnabled

Whether or not the toolbar should be used on input views. Default = YES.

@property (nonatomic) BOOL toolbarEnabled

Discussion

Whether or not the toolbar should be used on input views. Default = YES.

Declared In

RBManagedFormSchema.h

  validationViewType

The validation view to display when highlighting incomplete fields. Default = RBManagedFormValidationViewTypeTooltip.

@property (nonatomic) RBManagedFormValidationViewType validationViewType

Discussion

The validation view to display when highlighting incomplete fields. Default = RBManagedFormValidationViewTypeTooltip.

Declared In

RBManagedFormSchema.h

  keyboardReturnAction

The action to perform when the return key is tapped on the keyboard. Default = RBManagedFormKeyboardReturnActionCloseKeyboard.

@property (nonatomic) RBManagedFormKeyboardReturnAction keyboardReturnAction

Discussion

The action to perform when the return key is tapped on the keyboard. Default = RBManagedFormKeyboardReturnActionCloseKeyboard.

Declared In

RBManagedFormSchema.h

+ schemaWithItems:

Creates a new schema with the given array of items.

+ (nonnull instancetype)schemaWithItems:(nonnull NSArray<__kindofRBManagedFormItemSchema*> *)items

Parameters

items

The schema items to add to the schema.

Return Value

The newly initialized form schema object.

Discussion

Creates a new schema with the given array of items.

Declared In

RBManagedFormSchema.h

– initWithSchemaDictionary:

Initializes the schema object by deserialising from the given dictionary.

- (nonnull instancetype)initWithSchemaDictionary:(nonnull NSDictionary *)schemaDictionary

Parameters

schemaDictionary

The serialised schema dictionary.

Return Value

The initialized schema object.

Discussion

Initializes the schema object by deserialising from the given dictionary.

Declared In

RBManagedFormSchema.h

– schemaDictionary

Serialises the schema object to a property list.

- (nonnull NSDictionary *)schemaDictionary

Return Value

The serialised schema.

Discussion

Serialises the schema object to a property list.

Declared In

RBManagedFormSchema.h

– newValidator

Creates a new form validator from the schema.

- (nonnull RBManagedFormValidator *)newValidator

Return Value

A new RBManagedFormValidator object.

Discussion

Creates a new form validator from the schema.

Declared In

RBManagedFormSchema.h

  items

An array of form item schema objects.

@property (nonatomic, nonnull) NSArray<__kindofRBManagedFormItemSchema*> *items

Discussion

An array of form item schema objects.

Declared In

RBManagedFormSchema.h

  itemsWithLabels

An array of the form item schema objects with title label schemas added.

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

Discussion

An array of the form item schema objects with title label schemas added.

Declared In

RBManagedFormSchema.h

– itemWithIdentifier:

Gets the item schema with the given name.

- (nonnull RBManagedFormItemSchema *)itemWithIdentifier:(nonnull NSString *)identifier

Parameters

identifier

The name of the item.

Return Value

The retrieved item schema object.

Discussion

Gets the item schema with the given name.

Declared In

RBManagedFormSchema.h

– fieldWithIdentifier:

Gets the form field schema with the given name.

- (nonnull RBManagedFormFieldSchema *)fieldWithIdentifier:(nonnull NSString *)identifier

Parameters

identifier

The identifier of the field.

Return Value

The retrieved form field schema object.

Discussion

Gets the form field schema with the given name.

Declared In

RBManagedFormSchema.h