Biometrid IOS SDK
3.0.2
3.0.2
  • 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
    • Biometric Authentication
      • Configurations
    • Device Location
      • Configurations
    • Presence Detection
      • Configurations
  • 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

Auto Capture

Automatically capture identification document, MRZ code's and face.-

// Starts automatic capture (Document or Face)
BiometridStandard.getInstance().startAutoCapture(viewController: self, options: options, callback: self)
// Starts mrz code scanner
BiometridStandard.getInstance().startAutoMRZCapture(viewController: self, options: options, callback: self)
Parameter
Description

viewController: UIViewController

View Controller to open the auto capture screen

options: CaptureOptions?

Options to change customization of screen

callback: ProcessCallback?

callback

Implementation example

import UIKit
import BiometridStandardSDK
import AutoCaptureWrapper

class ViewController: UIViewController, ProcessCallback {
    
    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    @IBAction func startAutoCaptureBtn(_ sender: Any) {
        let options = CaptureOptions()
        BiometridStandard.getInstance().startAutoCapture(viewController: self, options: options, callback: self)
    }
    
    func autoCaptureCallback(status: Bool, result: CaptureResult?, error: Errors?) {
        if !status || error != nil {
            print(error?.rawValue)
            return
        }
        print("result", result.image64)
    }
}

Callback params

Parameter
Description

status: Bool

Method request status

result: CaptureResult?

Class with result image of auto capture

error: Errors?

Errors associated enum

PreviousLiveness DetectionNextMRZ Capture

Was this helpful?