Skip to content

NfcHelpMessagesConfigurationBuilder

Builder class that helps creation of NfcHelpMessagesConfiguration.

Public Methods

public init(defaultLanguage: String?)

Creates a configuration given the selected language, in string format.

  • Parameters:

    • defaultLanguage: language to be used in the configuration.
public init(defaultLanguage: NfcConfiguration.Language)

Creates a configuration given the selected language, in NfcConfiguration.Language format.

  • Parameters:

    • defaultLanguage: language to be used in the configuration.
@discardableResult
public func setInitialMessage(_ message: String?) -> NfcHelpMessagesConfigurationBuilder

Sets the initial message of the configuration.

  • Parameters:

    • message: text to be shown.
  • Returns:

    • Builder itself.
@discardableResult
public func setSeveralTagsMessage(_ message: String?) -> NfcHelpMessagesConfigurationBuilder

Sets the message shown when more than one tag is found during scanning.

  • Parameters:

    • message: text to be shown.
  • Returns:

    • Builder itself.
@discardableResult
public func setAuthenticatingMessage(_ message: String?) -> NfcHelpMessagesConfigurationBuilder

Sets the message shown while authenticating in the chip.

  • Parameters:

    • message: text to be shown.
  • Returns:

    • Builder itself.
@discardableResult
public func setReadingMessage(_ message: String?) -> NfcHelpMessagesConfigurationBuilder

Sets the message shown while reading the chip.

  • Parameters:

    • message: text to be shown.
  • Returns:

    • Builder itself.
@discardableResult
public func setKeysErrorMessage(_ text: String?) -> NfcHelpMessagesConfigurationBuilder

Sets the message shown when the keys are not correct during authenticating.

  • Parameters:

    • message: text to be shown.
  • Returns:

    • Builder itself.
@discardableResult
public func setUserCancelledMessage(_ text: String?) -> NfcHelpMessagesConfigurationBuilder

Sets the message shown when the user cancelled the scan.

  • Parameters:

    • message: text to be shown.
  • Returns:

    • Builder itself.
@discardableResult
public func setUnexpectedErrorMessage(_ text: String?) -> NfcHelpMessagesConfigurationBuilder

Sets the message shown when an unexpected error happened.

  • Parameters:

    • message: text to be shown.
  • Returns:

    • Builder itself.
@discardableResult
public func setSuccessMessage(_ text: String?) -> NfcHelpMessagesConfigurationBuilder

Sets the message shown when the chip reading ended successfully.

  • Parameters:

    • message: text to be shown.
  • Returns:

    • Builder itself.
public func build() -> NfcHelpMessagesConfiguration

Builds the configuration builder and creates the error alert configuration.

  • Returns:

    • Configuration of the error alert.