Package com.regula.facesdk.configuration
Class LivenessConfiguration.Builder
- java.lang.Object
-
- com.regula.facesdk.configuration.LivenessConfiguration.Builder
-
- Enclosing class:
- LivenessConfiguration
public static class LivenessConfiguration.Builder extends java.lang.Object
Build a newLivenessConfiguration
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
setAttemptsCount
public LivenessConfiguration.Builder setAttemptsCount(int count)
Set count of attempts for the liveness process- Parameters:
count
- the number of attempts to set.- Returns:
- the Builder
-
build
public LivenessConfiguration build()
-
setCloseButtonEnabled
public LivenessConfiguration.Builder setCloseButtonEnabled(boolean isEnabled)
-
setLocationTrackingEnabled
public LivenessConfiguration.Builder setLocationTrackingEnabled(boolean isShow)
-
setCameraSwitchEnabled
public LivenessConfiguration.Builder setCameraSwitchEnabled(boolean isEnabled)
-
setTorchButtonEnabled
public LivenessConfiguration.Builder setTorchButtonEnabled(boolean isEnabled)
-
setCameraId
public LivenessConfiguration.Builder setCameraId(int cameraId)
-
registerUiFragmentClass
public LivenessConfiguration.Builder registerUiFragmentClass(java.lang.Class<? extends FaceUiFragment> uiFragment)
-
registerProcessingFragment
public LivenessConfiguration.Builder registerProcessingFragment(java.lang.Class<? extends BaseFaceLivenessProcessingFragment> fragment)
-
setRecordingProcess
@Deprecated public LivenessConfiguration.Builder setRecordingProcess(boolean ignoredIsRecordingProcess)
Deprecated.Set the flag to false to disable recording liveness process- Parameters:
ignoredIsRecordingProcess
- the flag allows recording process video.- Returns:
- the Builder
- Since:
- 6.1
-
setRecordingProcess
public LivenessConfiguration.Builder setRecordingProcess(RecordingProcess process)
Set the flag fromRecordingProcess
enum to recording liveness process by defaultRecordingProcess.ASYNCHRONOUS_UPLOAD
- Parameters:
process
- the flag allows recording process video.- Returns:
- the Builder
-
setTag
public LivenessConfiguration.Builder setTag(java.lang.String tag)
-
setSkipStep
public LivenessConfiguration.Builder setSkipStep(LivenessSkipStep... skipStep)
-
setVibrateOnStep
public LivenessConfiguration.Builder setVibrateOnStep(boolean vibrateOnSteps)
-
setCopyright
public LivenessConfiguration.Builder setCopyright(boolean hasCopyright)
-
setScreenOrientation
public LivenessConfiguration.Builder setScreenOrientation(ScreenOrientation... screenOrientation)
-
setType
public LivenessConfiguration.Builder setType(LivenessType livenessType)
-
setMetadata
public LivenessConfiguration.Builder setMetadata(JSONObject metadata)
-
-