RBManagedFormViewDelegate Protocol Reference

Conforms to NSObject
RBBaseLayoutViewDelegate
Declared in RBManagedFormView.h

Overview

A delegate to receive managed form events from an RBManagedFormView object.

– setupView:forIdentifier:withManagedFormView:

Called for each schema items corresponding UIView when the form is being setup.

- (void)setupView:(nonnull UIView *)view forIdentifier:(nonnull NSString *)identifier withManagedFormView:(nonnull RBManagedFormView *)managedFormView

Parameters

view

The UIView object that the schema with the provided identifier has created.

identifier

The identifier of the schema.

managedFormView

The RBManagedFormView object.

Declared In

RBManagedFormView.h

– managedFormViewWasSubmitted:

Called when the form is validated and submitted.

- (void)managedFormViewWasSubmitted:(nonnull RBManagedFormView *)managedFormView

Parameters

managedFormView

The RBManagedFormView object.

Declared In

RBManagedFormView.h

– managedFormViewWasCancelled:

Called when the form is cancelled.

- (void)managedFormViewWasCancelled:(nonnull RBManagedFormView *)managedFormView

Parameters

managedFormView

The RBManagedFormView object.

Declared In

RBManagedFormView.h

– fieldWithIdentifier:willUpdateFromValue:toValue:withManagedFormView:

Called when a field will have it’s value changed.

- (void)fieldWithIdentifier:(nonnull NSString *)identifier willUpdateFromValue:(nullable id)value toValue:(nullable id)newValue withManagedFormView:(nonnull RBManagedFormView *)managedFormView

Parameters

identifier

The identifier of the field.

value

The current value of the field.

newValue

The new value that will be assigned to the field.

managedFormView

The RBManagedFormView object.

Declared In

RBManagedFormView.h

– fieldWithIdentifier:didUpdateFromValue:toValue:withManagedFormView:

Called when a field value has changed.

- (void)fieldWithIdentifier:(nonnull NSString *)identifier didUpdateFromValue:(nullable id)previousValue toValue:(nullable id)value withManagedFormView:(nonnull RBManagedFormView *)managedFormView

Parameters

identifier

The identifier of the field.

previousValue

The previous value of the field.

value

The new value of the field.

managedFormView

The RBManagedFormView object.

Declared In

RBManagedFormView.h

– presentingViewControllerForFormView:

Gets the view controller that should be used when presenting the photo library or camera.

- (nonnull UIViewController *)presentingViewControllerForFormView:(nonnull RBManagedFormView *)managedFormView

Parameters

managedFormView

The RBManagedFormView object.

Return Value

The UIViewController to present with.

Declared In

RBManagedFormView.h