CLASS
GenericViewController
Contents
- Methods
init(_:style:commonStyle:)init(coder:)deinitviewDidLoad()hasLoading()handleFormModel(_:)stopLoading()handleProblemModel(_:)handleInfoMessageModels(_:)
 
open class GenericViewController: BaseViewController<GenericModel, GenericViewControllerStyle>
A UIViewController instance that is capable of displaying a GenericModel which contains one of any combination of an optional SelectorModel and
an optional FormModel
Actions are submited using delegation callback via HaapiFlowViewControllerDelegatereference stored in haapiFlowViewControllerDelegate property.
Methods
init(_:style:commonStyle:)
override public init(
    _ model: any GenericModel,
    style: GenericViewControllerStyle,
    commonStyle: HaapiUIViewControllerStyle
)
Constructor for the UIViewController specialized for GenericModel representation.
- Parameters:
- model: The model that conforms to 
GenericModelto present in the UIViewController. - style: The style that conforms to 
UIStyleand is applied to the GenericViewController. - commonStyle: The common style definitions for components used in HaapiUIViewController.
 
 - model: The model that conforms to 
 
Parameters
| Name | Description | 
|---|---|
| model | The model that conforms to GenericModel to present in the UIViewController. | 
| style | The style that conforms to UIStyle and is applied to the GenericViewController. | 
| commonStyle | The common style definitions for components used in HaapiUIViewController. | 
init(coder:)
deinit
deinit
viewDidLoad()
override open func viewDidLoad()
hasLoading()
override public func hasLoading() -> Bool
handleFormModel(_:)
override public func handleFormModel(_ formModel: FormModel) -> Bool
stopLoading()
override public func stopLoading()
handleProblemModel(_:)
override public func handleProblemModel(_ problemModel: ProblemModel) -> Bool
handleInfoMessageModels(_:)
override public func handleInfoMessageModels(_ infoMessageModels: [InfoMessageModel])