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

Device Location

Obtain the device location using a combination of WIFI, GPS, and cell phone towers signals.

BiometridStandard.getInstance().getLocation(callback: callback)
Parameter
Description

callback: ProcessCallback

Process callback

Implementation example

import UIKit
import BiometridStandardSDK

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

    func locationCallback(location: LocationData?, error: Errors?) {
        if error != nil {
            print(error?.rawValue)
            return
        }
        print("location", location.description)
    }
}

Callback params

location: LocationData?

The device location coordinates

error: Errors?

Errors associated enum

altitude: Double

The device altitude coordinates.

longitude: Double

The device longitude coordinates.

latitude: Double

The device latitude coordinates.

PreviousConfigurationsNextConfigurations

Was this helpful?