Skip to content

NfcDocumentType

Available documents for NFC reading.

Values

public enum NfcDocumentType: String, CaseIterable
  • ES_IDCard_2015 = "ES_IDCard_2015": Spanish national identity document 3.0.
  • Passport = "XX_Passport_YYYY": Generic e-passport.
  • ES_ResidencePermit_2011 = "ES_ResidencePermit_2011": Spanish national Residence permit 2011.
  • ES_ResidencePermit_2020 = "ES_ResidencePermit_2020": Spanish national Residence permit 2020.
  • ES_IDCard_2021 = "ES_IDCard_2021": Spanish national identity document 4.0.
  • ICAO_LIMITED_SUPPORT = "ICAO_LIMITED_SUPPORT": it represents any other document that complies with ICAO 9303, that is not specifically supported by the SDK. This support is LIMITED and may not work as expected if the document itself partially complies with ICAO specification.

Public Methods

public static func isValueValid(type: String) -> Bool

Checks whether the input string is valid.

  • Parameters:

    • type: String with the document to be validated.
  • Returns:

    • True if the value is valid, false otherwise.
public static func getDocumentType(type: String) -> NfcDocumentType?

Creates an NfcDocumentType if possible.

  • Parameters:

    • type: String representing the document to be created.
  • Returns:

    • An NfcDocumentType if the String is valid, nil otherwise.
public static func getValues() -> [String]

Gets the values of the enumeration in String format

  • Returns:

    • Array with all available values, in String format.