Facade

public class Facade

Class used to load the wayfinding module on a given view

  • Initializes the facade and checks the user’s credentials.

    Declaration

    Swift

    public init(containedBy view: UIView, controlledBy viewController: UIViewController)

    Parameters

    view

    View object that will contain the wayfinding UI

    viewController

    View controller associated with the containing view

  • Loads the Wayfinding UI in the assigned view and shows the selected building

    Declaration

    Swift

    public func load(buildingWithId buildingId: String = "", logWith credentials: Credentials, onBackPressedCallback callback: @escaping (_ sender: Any) -> Void)

    Parameters

    buildingId

    Id of the building to be load

    credentials

    Intance of Credentials object containing the user’s credentials

    callback

    Closure used to perform the exit segue from the wayfinding view