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

Biometric Authentication

Perform biometric authentication using the device preferred authentication methods: FaceID, Fingerprint or PIN code.

BiometridStandard.getInstance().startAuthentication(callback: callback, options: options)
Parameter
Description

callback: ProcessCallback

Process callback

options: AuthenticationOptions?

Options to customize the authentication view

Implementation example

import UIKit
import BiometridStandardSDK

class ViewController: UIViewController, ProcessCallback {
    
    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    @IBAction func startAuthenticationBtn(_ sender: Any) {
        BiometridStandard.getInstance().startAuthentication(callback: self)
    }

    func authenticationCallback(status: Bool, error: Errors?) {
        if error != nil {
            print(error?.rawValue)
            return
        }
        print("status", status)
    }
}

Callback params

status: Bool?

The status of the authentication

error: Errors?

Errors associated enum

PreviousVideo ConferenceNextConfigurations

Was this helpful?