Skip to content

NfcErrorAlertConfiguration

Struct that handles the configuration of the error alert configurable properties.

If created without parameters, it will generate the default values for all parameters.

Properties

public var description: String { get }

Description of the parameters.

Public Methods

public init(
 backgroundColor: UIColor? = nil,
 titleText: String? = nil,
 titleTextColor: UIColor? = nil,
 informativeText: String? = nil,
 informativeTextColor: UIColor? = nil,
 cancelButtonBackgroundColor: UIColor? = nil,
 cancelButtonTitleText: String? = nil,
 cancelButtonTitleTextColor: UIColor? = nil,
 fontName: String? = nil,
 defaultLanguage: NfcConfiguration.Language? = nil
)

Constructor of the class. All parameters are optional and their default value is nil. If no parameter is introduced it will create default configurations.

  • Parameters:

    • backgroundColor: background color of the view.
    • titleText: text that appears in the title of the alert.
    • titleTextColor: color of the text of the title.
    • informativeText: text that explains the user what it is going to happen or has happened.
    • informativeTextColor: color of the informative text.
    • cancelButtonBackgroundColor: background color of the cancel button.
    • cancelButtonTitleText: text of the cancel button.
    • cancelButtonTitleTextColor: color of the cancel button title.
    • fontName: font used in all text of this alert.
    • defaultLanguage: default language used for not configured parameters.