Call this to start reading a passport NFC. This will automatically show UI telling the user to bring the phone near a passport, and informing them of the progress. Results will be given to the delegate via the ALNFCDetectorDelegate protocol methods. The parameters are needed to authenticate with the NFC chip; for security, the chip can not be read without some visible information from the passport.
- (void)startNfcDetectionWithPassportNumber:(NSString *_Nonnull)passportNumber dateOfBirth:(NSDate *_Nonnull)dateOfBirth expirationDate:(NSDate *_Nonnull)expirationDate
Parameters
passportNumber |
the passport number of the passport, including a trailing < if there is one in the MRZ string |
dateOfBirth |
the date of birth on the passport |
expirationDate |
the expiration date of the passport |
Declared In
ALNFCDetector.h