Skip to content

NfcTutorialConfiguration

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,
 scanButtonBackgroundColor: UIColor? = nil,
 scanButtonTitleText: String? = nil,
 scanButtonTitleTextColor: UIColor? = nil,
 fontName: String? = nil,
 defaultLanguage: NfcConfiguration.Language? = nil,
 closeButton: Bool = false,
 closeButtonImage: UIImage? = 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 view.
    • 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.
    • scanButtonBackgroundColor: background color of the scan button.
    • scanButtonTitleText: text of the scan button.
    • scanButtonTitleTextColor: color of the cancel scan title.
    • fontName: font used to all text of this alert.
    • defaultLanguage: default language used for not configured parameters.
    • closeButton: whether the close button should be shown or not. If set to false, the button disappears.
    • closeButtonImage: image to be shown in the close button.