SkontoNavigationBarBottomAdapter

public protocol SkontoNavigationBarBottomAdapter : InjectedViewAdapter

Protocol for injecting a custom bottom navigation bar on Skonto.

Note

Bottom navigation only.
  • Set the callback for the proceed button action.

    Declaration

    Swift

    func setProceedButtonClickedActionCallback(_ callback: @escaping () -> Void)

    Parameters

    callback

    An action callback, which should be retained and called in proceed button action method.

  • Set the callback for the back button action.

    Declaration

    Swift

    func setBackButtonClickedActionCallback(_ callback: @escaping () -> Void)

    Parameters

    callback

    An action callback, which should be retained and called in back button action method.

  • Set the callback for the help button action.

    Declaration

    Swift

    func setHelpButtonClickedActionCallback(_ callback: @escaping () -> Void)

    Parameters

    callback

    An action callback, which should be retained and called in help button action method.

  • Update the total price on the bottom navigation bar.

    Declaration

    Swift

    func updateTotalPrice(priceWithCurrencyCode price: String?)

    Parameters

    price

    A string which contains the currency and the price.

  • Update the Skonto percentage badge text on the bottom navigation bar.

    Declaration

    Swift

    func updateSkontoPercentageBadge(with text: String?)

    Parameters

    text

    A string which contains the value of Skonto percentage(e.g: “3 % Skonto”).

  • Update the Skonto percentage badge visibility.

    Declaration

    Swift

    func updateSkontoPercentageBadgeVisibility(hidden: Bool)

    Parameters

    enabled

    A bool value to reflect the visibility of the Skonto percentage badge.

  • Update the Skonto savings information on the bottom navigation bar. This reflects the savings after paying the invoice within the Skonto period.

    Declaration

    Swift

    func updateSkontoSavingsInfo(with text: String?)

    Parameters

    text

    A string that contains the value of the savings when paying within the Skonto period(e.g: “3,00 EUR sparen”).

  • Update the Skonto savings information visibility.

    Declaration

    Swift

    func updateSkontoSavingsInfoVisibility(hidden: Bool)

    Parameters

    hidden

    A bool value to reflect the visibility of the savings information.