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. FULL SDK

Initialization

This section contains the necessary methods to init BiometridFull SDK.

In order to use any of the SDK functionalities, the application needs to initialize it first, using the credentials provided during the enrollment on our platform (see prerequisites section above).

BiometridFull.getInstance().initialize(apiUrl: BIOMETRIDFULL_API_URL,
                                       app: BIOMETRIDFULL_APP,
                                       credential: BIOMETRIDFULL_CREDENTIAL,
                                       appUrl: BIOMETRIDFULL_APP_URL,
                                       language: .English,
                                       customHeaders: [:],
                                       callback: self)

apiUrl: String

Url credential provided

app: String

Application key provided

credential: String

Secret credential provided

appUrl: String

App Url

language: Language

Language of Full SDK, defaul is English

customHeaders: [String: String]?

Custom headers

callback: BiometridFullCallback

callback

Implementation example

import UIKit
import full_sdk_ios_wv
import BiometridStandard

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let BIOMETRIDFULL_API_URL = "https://biometrid.com/"     
        let BIOMETRIDFULL_APP = "b9901"
        let BIOMETRIDFULL_CREDENTIAL = "01"
        let BIOMETRIDFULL_APP_URL = "https://app.biometrid.com/"
        
        BiometridFull.getInstance().initialize(apiUrl: BIOMETRIDFULL_API_URL,
                                       app: BIOMETRIDFULL_APP,
                                       credential: BIOMETRIDFULL_CREDENTIAL,
                                       appUrl: BIOMETRIDFULL_APP_URL,
                                       language: .English,
                                       customHeaders: nil,
                                       callback: self)
    }
}

extension ViewController: BiometridFullCallback {
    
    func initializeCallback(status: Bool, error: Errors?) {
        if let error = error {
            print("Error", error)
        }
        print("Status", status)
    }
      
    func processCreatedCallback(processId: String?) { }
    
    func processFinishedCallback() { }
    
    func interfaceStartedCallback() { }
    
    func interfaceClosedCallback() { }
}

Callback params

Parameter
Description

status: Bool

Method request status

error: Errors?

Errors associated enum

processId: String?

Id of current process

PreviousCocoaPodsNextStart

Was this helpful?