DigitalInvoiceNavigationBarBottomAdapter
public protocol DigitalInvoiceNavigationBarBottomAdapter : InjectedViewAdapter
Protocol for injecting a custom bottom navigation bar on the overview screen for digital invoices.
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 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
-
Set the total price on the bottom navigation bar. Called when the total price changes
Declaration
Swift
func updateTotalPrice(priceWithCurrencySymbol price: String?)
Parameters
price
A string which contains the currency and the price
-
Set the proceed button state. Called when state of the button should be changed
Declaration
Swift
func updateProceedButtonState(enabled: Bool)
Parameters
enabled
A bool value to reflect the state of the button
-
updateSkontoPercentageBadge(with:)
Default implementationUpdate the Skonto percentage badge text on the bottom navigation bar.
Default Implementation
Declaration
Swift
func updateSkontoPercentageBadge(with text: String?)
Parameters
text
A string which contains the value of Skonto percentage(e.g: “3 % Skonto”).
-
updateSkontoPercentageBadgeVisibility(hidden:)
Default implementationUpdate the Skonto percentage badge visibility.
Default Implementation
Declaration
Swift
func updateSkontoPercentageBadgeVisibility(hidden: Bool)
Parameters
enabled
A bool value to reflect the visibility of the Skonto percentage badge.
-
updateSkontoSavingsInfo(with:)
Default implementationUpdate the Skonto savings information on the bottom navigation bar. This reflects the savings after paying the invoice within the Skonto period.
Default Implementation
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”).
-
updateSkontoSavingsInfoVisibility(hidden:)
Default implementationUpdate the Skonto savings information visibility.
Default Implementation
Declaration
Swift
func updateSkontoSavingsInfoVisibility(hidden: Bool)
Parameters
hidden
A bool value to reflect the visibility of the savings information.