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
TutorialNFCViewControllerDeclaration
Swift
public init(primaryAction: (() -> Void)? = nil)Parameters
primaryActionThe 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
TutorialNFCViewControllerthat automatically presents aPassportChipReaderDeclaration
Swift
public convenience init( mrzInformationKey: String, passportReader: PassportChipReader = PassportChipReader(), handler: ((TutorialNFCViewController?, PassportChipReaderResult) -> Void)? = nil)Parameters
mrzInformationKeyThe
MRZ_information, extracted from the holder’s passport Machine-Readable ZonepassportReaderThe
PassportChipReaderto perform readinghandlerExecutes when
passportReaderfinishes reading
TutorialNFCViewController Class Reference