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
  2. Process Management

Get Step State

This section contains the necessary methods to get selected step state.

You have 2 options to get step state:

  • CurrentStep

  • CompletedSteps

BiometridStandard.getInstance().getStepState(processId: processId, state: StepState, callback: self)

Example:
//Current step
BiometridStandard.getInstance().getStepState(processId: processId, state: .CurrentStep, callback: self)

//Completed steps
BiometridStandard.getInstance().getStepState(processId: processId, state: .CompletedSteps, callback: self)

Parameter

Description

processId: String

Process id

state: StepState

StepState enum

callback: ProcessCallback

callback

Implementation example

import UIKit
import BiometridStandardSDK

class ViewController: UIViewController, ProcessCallback {

    let processId = "nodkthhdhdhdd"
    
    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    @IBAction func getStepStateBtn(_ sender: Any) {
        BiometridStandard.getInstance().getStepState(processId: processId, state: .CompletedSteps, callback: self)
    }

    func getStepStateCallback(status: Bool, response: String?, error: Errors?) {
        print("status get step state", status)
        if error != nil {
            print(error?.rawValue)
            return
        }
        print("response getStepState", response)
    }
}

Callback params

Parameter

Description

status: Bool

Method request status

response: String?

All the response from the api

error: Errors?

Errors associated enum

PreviousCreate processNextUpdate Step

Was this helpful?