Entry point of the Regula Face SDK.

Properties

env: string

Environment type.

locale: string

Custom language locale code of DocumentReaderSDK. If empty or doesn't exist - app language is used. Format "en-US" or "en".

tenant: string

Customer name.

Accessors

  • get localizationDictionary(): Record<string, string>
  • A localization dictionary to override default localization logic. Allows to replace any string of FaceSDK with an arbitrary string.

    To see all the localization keys, look up the RegulaSDK.strings file at ios/Pods/FaceSDK/FaceSDK.xcframework/ios-arm64/FaceSDK.framework/FaceSDK.bundle/en.lproj/FaceSDK.strings.

    Immutable property. Use setter instead of editing.

    Returns Record<string, string>

  • set localizationDictionary(val): void
  • Parameters

    • val: Record<string, string>

    Returns void

  • get requestHeaders(): Record<string, string>
  • Immutable property. Use setter instead of editing.

    Returns Record<string, string>

  • set requestHeaders(val): void
  • Parameters

    • val: Record<string, string>

    Returns void

  • get serviceUrl(): string
  • Returns string

  • set serviceUrl(val): void
  • Parameters

    • val: string

    Returns void

  • set videoEncoderCompletion(completion): void
  • Allows user to receive a video file of current session.

    Parameters

    Returns void

  • get instance(): FaceSDK
  • The only instance of singleton class FaceSDK.

    Returns FaceSDK

Methods

  • Used to deinitialize FaceSDK and free up RAM as a consequence of this.

    Returns void

  • Allows you to initialize FaceSDK.

    Parameters

    • Optionalparams: {
          config?: InitConfig;
      }
      • Optionalconfig?: InitConfig

        configuration file for FaceSDK initialization.

    Returns Promise<[boolean, InitException]>

    Returns boolean indicating success of initialization and a nullable InitException.

  • Checks if FaceSDK is initialized.

    Returns Promise<boolean>

  • Returns void

  • Returns void