Biometrid IOS SDK
2.5.5
2.5.5
  • Introduction
  • Standard SDK
    • Prerequisites
    • Requirements
    • Initialization
    • Enums
    • Installation
      • Zip file
      • CocoaPods
    • Process Management
      • Create process
      • Get Step State
      • Update Step
      • Previous Step
    • Liveness Detection
    • Auto Capture
      • MRZ Capture
      • Configurations
    • Camera
      • Configurations
    • NFC
      • Scan Result
      • Configurations
    • Video Conference
  • FULL SDK
    • Requirements
    • Usage
    • Installation
      • Zip file
      • CocoaPods
    • Initialization
    • Start
    • Stop
    • Callbacks
Powered by GitBook
On this page
  • Implementation example
  • Callback params

Was this helpful?

  1. Standard SDK

NFC

This section contains the necessary knowledge to understand the start nfc in BiometridStandard.

It contains two methods to start NFC:

  1. Manual NFC, where you send the MRZ data for the nfc scan

  2. Auto NFC, where it has a step to take a photo of mrz code, and then starts nfc scan.

//Manual
BiometridStandard.getInstance().startNFC(viewController: self, passportMRZ: passportMRZ, nfcCustomization: nfcCustomization, callback: self)
//Auto
BiometridStandard.getInstance().startNFC(viewController: self, nfcCustomization: nfcCustomization, callback: self)
Parameter
Description

viewController: UIViewController

View Controller to open the nfc screen

passportMRZ: PassportMRZKey

Data with MRZ of passport you want to scan

options: NFCCustomization?

Options to change customization of nfc screen

callback: ProcessCallback?

callback

Implementation example

import UIKit
import BiometridStandard

class ViewController: UIViewController, ProcessCallback {

    let passportMRZ = "YYMMDD"
    
    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    @IBAction func startManualNFCBtn(_ sender: Any) {
        let customization = NFCCustomization()
        BiometridStandard.getInstance().startNFC(viewController: self, passportMRZ: passportMRZ, nfcCustomization: customization, callback: self)
    }
    
    @IBAction func startAutoNFCBtn(_ sender: Any) {
        let customization = NFCCustomization()
        BiometridStandard.getInstance().startNFC(viewController: self, nfcCustomization: customization, callback: self)
    }
    
    func nfcCallback(document: EDocument?, error: Errors?) {
        if error != nil {
            print(error?.rawValue)
            return
        }
        print("document", document)
    }
}

Callback params

document: EDocument?

Image in base64

errors: Errors?

Errors associated enum

PreviousConfigurationsNextScan Result

Was this helpful?