Skip to content

VDPhotoSelfieCaptureProtocol

Protocol that communicates this framework with an app/framework/library that uses it.

Public Methods

- (void)VDPhotoChallengeVideoCaptured:(NSData*)videoChallenges andFile:(NSData*) file

OPTIONAL Delegate method which will notify when a challenge video and the WebVTT file are captured.

The image is compressed as a jpeg with 50% of quality compression.

  • Parameters:

    • videoChallenges: Contains the data of the video captured.
    • file: Contains the data of the WebVTT file.
- (void)VDPhotoSelfieAllFinished:(Boolean)processFinished

Delegate method which will notify when the process has finished completely

This method will be called always at the end of the process or when stop has been called when everything is stopped.

  • Parameters:

    • processFinished: Indicates if the process has finished successfully (true) or has been interrupted (false).
- (void)VDPhotoSelfieCaptured:(NSData*)photoSelfieData andFace:(NSData*) face

Delegate method which will notify when the selfie image is captured.

  • Parameters:

    • photoSelfieData: Contains the data of the selfie image captured.
    • face: Contains the data of the face cropped contained in the selfie image if possible.
- (void)VDPhotoSelfieCapturedWithLiveDetection:(NSData*)photoSelfieData andFace:(NSData*) face

Delegate method which will notify when the selfie frame is captured.

  • Parameters:

    • photoSelfieData: Contains the data of the selfie frame captured.
    • face: Contains the data of the face cropped contained in the selfie frame if possible.
- (void)VDPhotoSelfieChallengeFinishedWithError

Delegate method to notify the repetition of the Selfie Alive Pro process.