Configuration for the Liveness processing. The configuration provides convenient properties to change the behavior and the appearance of the Liveness UI module.

Constructors

  • Parameters

    • Optionalparams: {
          attemptsCount?: number;
          cameraPositionAndroid?: number;
          cameraPositionIOS?: CameraPosition;
          cameraSwitchEnabled?: boolean;
          closeButtonEnabled?: boolean;
          copyright?: boolean;
          livenessType?: LivenessType;
          locationTrackingEnabled?: boolean;
          metadata?: Record<string, any>;
          recordingProcess?: RecordingProcess;
          screenOrientation?: ScreenOrientation[];
          skipStep?: LivenessSkipStep[];
          tag?: string;
          torchButtonEnabled?: boolean;
          vibrateOnSteps?: boolean;
      }
      • OptionalattemptsCount?: number
      • OptionalcameraPositionAndroid?: number
      • OptionalcameraPositionIOS?: CameraPosition
      • OptionalcameraSwitchEnabled?: boolean
      • OptionalcloseButtonEnabled?: boolean
      • Optionalcopyright?: boolean
      • OptionallivenessType?: LivenessType
      • OptionallocationTrackingEnabled?: boolean
      • Optionalmetadata?: Record<string, any>
      • OptionalrecordingProcess?: RecordingProcess
      • OptionalscreenOrientation?: ScreenOrientation[]
      • OptionalskipStep?: LivenessSkipStep[]
      • Optionaltag?: string
      • OptionaltorchButtonEnabled?: boolean
      • OptionalvibrateOnSteps?: boolean

    Returns LivenessConfig

Properties

attemptsCount: number

The number of attempts to pass the Liveness before completing with error. Defaults to 0. When set to 0 the Liveness will always ask to retry on error.

cameraPositionAndroid?: number

Android only.

cameraPositionIOS: CameraPosition

IOS only.

cameraSwitchEnabled: boolean

Defines, whether the camera's toolbar switch camera button is available on the Liveness UI. Defaults to false. When set to true the CameraToolbarView will contain a button to change current cameraPosition. Only for livenessType = LivenessType.PASSIVE.

closeButtonEnabled: boolean
copyright: boolean

Defines, whether the logo is visible on the bottom of Liveness UI screens. Defaults to true.

livenessType: LivenessType

Defines whether the liveness processing type. Defaults to LivenessType.ACTIVE.

locationTrackingEnabled: boolean

Defines whether the liveness request sends a location of a device. Defaults to true. When set to true the liveness request to web service will contain the location object within the json metadata object. The location is used only when permissions are granted and the location is available.

metadata?: Record<string, any>
recordingProcess: RecordingProcess

Defines whether the liveness recording video of processing. Defaults to RecordingProcess.ASYNCHRONOUS_UPLOAD.

screenOrientation?: ScreenOrientation[]

Allows you to specify an orientation of the camera view controller.

skipStep: LivenessSkipStep[]

Defines which steps of the user interface can be omitted. See LivenessSkipStep enum for details.

tag?: string

Defines tag that can be used in Liveness processing. Defaults to null.

torchButtonEnabled: boolean

Defines, whether the camera's toolbar torch button is available on the Liveness UI. Defaults to true. When set to false the CameraToolbarView won't contain a button to toggle camera's flashlight. Only for livenessType = LivenessType.PASSIVE.

vibrateOnSteps: boolean

Enables vibration during Liveness processing. Defaults to true.