Face capturing

Allows you to use the built-in face capturing view controller:

Swift
Objective-C
Swift
Face.service.presentCaptureViewController(from: self, animated: true, onCapture: { (faceCaptureResponse: FaceCaptureResponse?) in
// do smth
}, completion: nil)
Objective-C
[RGLFace.service presentFaceCaptureViewControllerFrom:self animated:YES onCapture:^(RGLFaceCaptureResponse * _Nullable faceCaptureResponse) {
// do smth
} completion:nil];

Response

FaceCaptureResponse
└── image
└── error

Parameter

Description

image

An image that was taken

error

Error