RFIDScannerHelper
public class RFIDScannerHelper: NSObject
This helper class can handle the RFID scanning (E-Passport Chip).
Constructor
public init(isDataRequiredOnFail: Bool = false, rfidResponseDelegate: RFIDResponseDelegate, ppObject: [String: Any], expiryGracePeriod: Int)
| Parameter | Description |
|---|---|
| isDataRequiredOnFail | Bool: A flag indicating whether data is required on scanning failure. The default value is false. |
| rfidResponseDelegate | RFIDResponseDelegate: The delegate to handle RFID scanning responses. |
| ppObject | [String: Any]: Scanned passport hardcopy document dictionary. |
| expiryDateGracePeriod | int: Number of days to allow as grace period ahead of Passport document expiry. |
Method Summary
| Type | Method | Description |
|---|---|---|
| void | startRFIDScanning(defaultTimeout: TimeInterval = 15) | Start RFID Scanning. The default scan timeout is 15 seconds. |
| void | stopRFIDScanning() | Stop RFID Scanning. |
Method Details
startRFIDScanning
public func startRFIDScanning(defaultTimeout: TimeInterval = 15)
Start RFID Scanning. The default scan timeout is 15 seconds.
| Parameter | Description |
|---|---|
| defaultTimeout | TimeInterval: A custom timeout value for RFID scan. |
stopRFIDScanning
public func stopRFIDScanning()
Stops RFID Scanning.