# Presence Detection

```swift
BiometridStandard.getInstance().startPresenceDetection(callback: callback, customization: customization)
```

| Parameter                               | Description                                |
| --------------------------------------- | ------------------------------------------ |
| callback: **ProcessCallback**           | Process callback.                          |
| customization: **Face06Customization?** | The presence detector view customizations. |

## Implementation example

```swift
import UIKit
import BiometridStandardSDK

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

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

```

## Callback params

<table data-header-hidden><thead><tr><th width="274">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>status: <strong>Bool</strong></td><td>Determines if the user was detected successfully.</td></tr><tr><td>processing: <strong>Bool</strong></td><td>Determines when the SDK is uploading and validating the scanned user photo.</td></tr><tr><td>error: <strong>Errors?</strong></td><td>Errors associated enum.</td></tr></tbody></table>
