CLASS

HaapiUIKitApplicationBuilder

Contents

public class HaapiUIKitApplicationBuilder

A builder-pattern class, designed to build an HaapiUIKitApplication.

Methods

init(haapiUIKitConfiguration:)

public init(haapiUIKitConfiguration: HaapiUIKitConfiguration)

Initializes the Builder with the mandatory parameter.

Parameters

Name Description
haapiUIKitConfiguration An HaapiUIKitConfiguration.

setThemingPlistFileName(_:and:)

public func setThemingPlistFileName(_ plistFileName: String,
                                    and bundle: Bundle = .main) -> HaapiUIKitApplicationBuilder

Sets the theming plist file name and the bundle.

Parameters

Name Description
plistFileName The plist file name which contains the configuration for the theming.
bundle The bundle.

setGenericClientOperationHandler(_:)

public func setGenericClientOperationHandler(_ value: GenericClientOperationHandler) -> HaapiUIKitApplicationBuilder

Sets a custom GenericClientOperationHandler. The default value uses an internal implementation that always executes the failure behaviour.

build()

public func build() -> HaapiUIKitApplication

Builds an Haapi UIKit application.