Skip to content

VDVideoSelfieCapture

Class that contains the main functions of the Framework.

Its the main class of this Framework. The public methods of this class are the ones used to make this Framework work.

Public Methods

+ (NSArray*) getConfigurationKeys

This method is used to ask for the SDK’s configuration keys.

  • Returns:

    • An array which contains the SDK configuration keys.
+ (NSString* _Nonnull) getVersion

This method is used to ask for the SDK’s version.

  • Returns:

    • A string which contains the SDK version.
+ (BOOL) isStarted

This method is used to ask the SDK if it is already running.

  • Returns:

    • Whether the SDK is running or not
+ (void) setDocumentStringToSearch (NSString*) document

This methods sets the document to show in the video.

  • Parameter:

    • document: The document id to show in the video.
+ (void) setDocumentToSearch (VDDocumentVideoEnum) document

DEPRECATED. This methods sets the document to show in the video.

  • Parameter:

    • document: The document id to show in the video.
+ (void) setToken (NSString*) token

DEPRECATED. This method sets the token to add as metadata to the video.

  • Parameter:

    • token: The token to add.
+ (UIViewController*) startWithDelegate: (UIViewController<VDVideoSelfieCaptureProtocol>*) delegate andConfiguration: (NSDictionary*) config

This method is needed to use the SDK. It programs the delegate to which the SDK will notify the outputs.

  • Parameters:

    • delegate: The instance to which the SDK will notify all its outputs.
    • config: The configuration of the SDK.
  • Returns:

    • The UIViewController that is shown.
+ (UIViewController*) startWithDelegate: (UIViewController<VDVideoSelfieCaptureProtocol>*) delegate andMode: (VDLifeProofMode) type

This method is needed to use the SDK. It programs the delegate to which the SDK will notify the outputs.

  • Parameters:

    • delegate: The instance to which the SDK will notify all its outputs.
    • type: The type of video is going to be taken.
  • Returns:

    • The UIViewController that is shown.
+ (void) stop

This method will stop the SDK and all its functionalities, so it needs to be started again. The SDK will not provide any more outputs after this method and the app flow will be given to the app.