TutorialNFCViewController
open class TutorialNFCViewController : UIViewController
Displays instructions to guide the user to scan the NFC chip on their passport
This is a completely optional screen designed to help you integrate the SDK. You may use it in your production application, or simply use it as a tool to better understand the full process to reading ePassports.
-
The action performed when the user taps the “Scan” button
Declaration
Swift
open var primaryAction: (() -> Void)?
-
Creates a new
TutorialNFCViewController
Declaration
Swift
public init(primaryAction: (() -> Void)? = nil)
Parameters
primaryAction
The action performed when the user taps the “Scan” button
-
Undocumented
Declaration
Swift
required public init?(coder: NSCoder)
-
Undocumented
Declaration
Swift
open override func viewDidLoad()
-
Creates a new
TutorialNFCViewController
that automatically presents aPassportChipReader
Declaration
Swift
public convenience init( mrzInformationKey: String, passportReader: PassportChipReader = PassportChipReader(), handler: ((TutorialNFCViewController?, PassportChipReaderResult) -> Void)? = nil)
Parameters
mrzInformationKey
The
MRZ_information
, extracted from the holder’s passport Machine-Readable ZonepassportReader
The
PassportChipReader
to perform readinghandler
Executes when
passportReader
finishes reading