CLASS
FormViewController
Contents
- Methods
init(_:style:commonStyle:)init(coder:)deinitviewDidLoad()handleProblemModel(_:)handleFormModel(_:)stopLoading()hasLoading()apply(style:)
open class FormViewController: BaseViewController<FormModel, FormViewControllerStyle>
A UIViewController instance that is capable of displaying a FormModel presenting a list of Messages
a list of InteractionItemModel and list of Links from which the user can select one.
Actions are submitted using delegation callback via HaapiFlowViewControllerDelegatereference stored in haapiFlowViewControllerDelegate property.
Methods
init(_:style:commonStyle:)
override public init(
_ model: any FormModel,
style: FormViewControllerStyle,
commonStyle: HaapiUIViewControllerStyle
)
init(coder:)
deinit
deinit
viewDidLoad()
override open func viewDidLoad()
handleProblemModel(_:)
override public func handleProblemModel(_ problemModel: ProblemModel) -> Bool
Parameters
| Name | Description |
|---|---|
| problemModel | An UIProblem that is mapped on a ProblemRepresentation. |
handleFormModel(_:)
override public func handleFormModel(_ formModel: FormModel) -> Bool
Parameters
| Name | Description |
|---|---|
| formModel | A FormModel. |
stopLoading()
override public func stopLoading()
hasLoading()
override public func hasLoading() -> Bool
apply(style:)
override public func apply(style: FormViewControllerStyle)