Builder

@objc
public class Builder : NSObject

Helper class to create instances on LibrarySettings object

  • Establish credentials. Following the builder pattern it returns an object to itself.

    Declaration

    Swift

    @discardableResult
    @objc
    public func setCredentials(credentials: Credentials) -> Builder
  • Establish building identifier. Following the builder pattern it returns an object to itself.

    Declaration

    Swift

    @discardableResult
    @objc
    public func setBuildingId(buildingId: String) -> Builder
  • Establish if customization is needed. Following the builder pattern it returns an object to itself.

    Declaration

    Swift

    @discardableResult
    @objc
    public func setUseDashboardTheme(useDashboardTheme: Bool) -> Builder
  • Establish google map object. Following the builder pattern it returns an object to itself.

    Declaration

    Swift

    @discardableResult
    @objc
    public func setGoogleMap(googleMap: GMSMapView) -> Builder
  • Establish if user configure icon position

    Declaration

    Swift

    @discardableResult
    @objc
    public func setUserPositionIcon(userPositionIcon: String) -> Builder
  • Establish if user configure arrow icon position

    Declaration

    Swift

    @discardableResult
    @objc
    public func setUserPositionArrowIcon(userPositionArrowIcon: String) -> Builder
  • Set the text that will be used as placeholder in the search view component.

    Declaration

    Swift

    @discardableResult
    @objc
    public func setSearchViewPlaceholder(searchViewPlaceholder: String) -> Builder
  • Establish the usage of remote configuration to initialize the location system (customizable in dashboard)

    Declaration

    Swift

    @discardableResult
    @objc
    public func setUseRemoteConfig(useRemoteConfig: Bool) -> Builder
  • Boolean that configure if the name of the POIs is shown above its icons when painting them on the map

    Declaration

    Swift

    @discardableResult
    @objc
    public func setShowPoiNames(showPoiNames: Bool) -> Builder
  • Sets whether the POI finder is visible

    Declaration

    Swift

    @discardableResult
    @objc
    public func setShowSearchBar(showSearchBar: Bool) -> Builder
  • Sets whether the back button is visible

    Declaration

    Swift

    @discardableResult
    @objc
    public func setShowBackButton(showBackButton: Bool) -> Builder
  • Sets whether to enable marker clustering of pois displayed or not

    Declaration

    Swift

    @discardableResult
    @objc
    public func setEnablePoiClustering(enablePoisClustering: Bool) -> Builder
  • Returns an instance of LibrarySettings

    Declaration

    Swift

    @objc
    public func build() -> LibrarySettings