# Camera

```swift
BiometridStandard.getInstance().startCamera(cameraCallback: self, viewController: self, options: options)
```

<table><thead><tr><th width="395">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>viewController: <strong>UIViewController</strong></td><td>View Controller to open the camera screen</td></tr><tr><td><strong>options: CameraOptions?</strong></td><td>Options to change customization of screen</td></tr><tr><td>callback: <strong>ProcessCallback?</strong></td><td>callback</td></tr></tbody></table>

## Implementation example

```swift
import UIKit
import BiometridStandardSDK

class ViewController: UIViewController, ProcessCallback {
    
    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    @IBAction func startCameraBtn(_ sender: Any) {
        let options = CameraOptions()
        BiometridStandard.getInstance().startCamera(viewController: self, options: options, callback: self)
    }
    
    func cameraCallback(image: String?, error: Errors?) {
        if error != nil {
            print(error?.rawValue)
            return
        }
        print("result", image)
    }
}
```

## Callback params

<table><thead><tr><th width="228">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>image: <strong>String</strong></td><td>Image in base64</td></tr><tr><td>errors: <strong>Errors</strong></td><td>Errors associated enum</td></tr></tbody></table>
