DocumentData

@objc
open class DocumentData : NSObject

Parsed document data

Since

1.0.0
  • true if the document contains no values

    Since

    1.0.0

    Declaration

    Swift

    @objc
    public var isEmpty: Bool { get }
  • First name of the document holder

    Since

    1.0.0

    Declaration

    Swift

    @objc
    open var firstName: String? { get }
  • Last name of the document holder

    Since

    1.0.0

    Declaration

    Swift

    @objc
    open var lastName: String? { get }
  • Address of the document holder

    Since

    1.0.0

    Declaration

    Swift

    @objc
    open var address: String? { get }
  • Document holder’s date of birth

    Since

    1.0.0

    Declaration

    Swift

    @objc
    open var dateOfBirth: String? { get }
  • Document date of expiry

    Since

    1.0.0

    Declaration

    Swift

    @objc
    open var dateOfExpiry: String? { get }
  • Document date of issue

    Since

    1.0.0

    Declaration

    Swift

    @objc
    open var dateOfIssue: String? { get }
  • Document number

    Since

    1.0.0

    Declaration

    Swift

    @objc
    open var documentNumber: String? { get }
  • sex

    Document holder’s sex

    Since

    1.0.0

    Declaration

    Swift

    @objc
    open var sex: String? { get }
  • Raw barcode data from which the document data was parsed

    Since

    1.0.0

    Declaration

    Swift

    @objc
    public var rawData: Data?
  • Subscript access to parsed entry values

    Since

    1.0.0

    Declaration

    Swift

    @objc
    public subscript(id: String) -> String? { get }
  • Map (dictionary) of entry descriptions and their parsed values

    Since

    1.0.0

    Declaration

    Swift

    @objc
    public var entryMap: [String : String] { get }
  • Array of all parsed entries

    The array contains tuples with entry keys and values.

    Since

    1.0.0

    Declaration

    Swift

    public var entries: [(key: String, value: String)] { get }
  • Set value for entry

    Since

    1.1.0

    Declaration

    Swift

    public func setValue(_ value: DataField, forEntryID id: String)

    Parameters

    value

    Value

    id

    Entry identifier