Method to stop and close SDK screen..
If needed pass mainViewController to properly exit SDK (recommended).
BiometridFull.getInstance().stop(mainViewController: UIViewController?, callback: BiometridFullCallback)
import UIKit
import full_sdk_ios_wv
import BiometridStandard
class ViewController: UIViewController, BiometridFullCallback {
let BIOMETRIDFULL_API_URL = "https://biometrid.com/"
let BIOMETRIDFULL_APP = "b9901"
let BIOMETRIDFULL_CREDENTIAL = "01"
let BIOMETRIDFULL_APP_URL = "https://app.biometrid.com/"
override func viewDidLoad() {
super.viewDidLoad()
BiometridFull.getInstance().initialize(apiUrl: BIOMETRIDFULL_API_URL, app: BIOMETRIDFULL_APP,
credential: BIOMETRIDFULL_CREDENTIAL, appUrl: BIOMETRIDFULL_APP_URL, customHeaders: nil, callback: self)
}
@IBAction func stopBtn(_ sender: Any) {
BiometridFull.getInstance().stop(mainViewController: self, callback: self)
}
func initializeCallback(status: Bool, error: Errors?) {
print("status init", status)
if error != nil {
print(error)
return
}
}
func processCreatedCallback(processId: String?) {
print(processId)
}
func processFinishedCallback() {
print("processFinishedCallback")
}
func interfaceStartedCallback() {
print("interfaceStartedCallback")
}
func interfaceClosedCallback() {
print("interfaceClosedCallback")
}
}