Package com.regula.facesdk.configuration
Class LivenessConfiguration.Builder
java.lang.Object
com.regula.facesdk.configuration.LivenessConfiguration.Builder
- Enclosing class:
LivenessConfiguration
Build a new
LivenessConfiguration
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
registerProcessingFragment
(Class<? extends BaseFaceLivenessProcessingFragment> fragment) registerUiFragmentClass
(Class<? extends FaceUiFragment> uiFragment) setAttemptsCount
(int count) Set count of attempts for the liveness processsetCameraId
(int cameraId) setCameraSwitchEnabled
(boolean isEnabled) setCloseButtonEnabled
(boolean isEnabled) setCopyright
(boolean hasCopyright) setLocationTrackingEnabled
(boolean isShow) setMetadata
(JSONObject metadata) setRecordingProcess
(boolean ignoredIsRecordingProcess) Deprecated.setRecordingProcess
(RecordingProcess process) Set the flag fromRecordingProcess
enum to recording liveness process by defaultRecordingProcess.ASYNCHRONOUS_UPLOAD
setScreenOrientation
(ScreenOrientation... screenOrientation) setSkipStep
(LivenessSkipStep... skipStep) setTorchButtonEnabled
(boolean isEnabled) setType
(LivenessType livenessType) setVibrateOnStep
(boolean vibrateOnSteps)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setAttemptsCount
Set count of attempts for the liveness process- Parameters:
count
- the number of attempts to set.- Returns:
- the Builder
-
build
-
setCloseButtonEnabled
-
setLocationTrackingEnabled
-
setCameraSwitchEnabled
-
setTorchButtonEnabled
-
setCameraId
-
registerUiFragmentClass
public LivenessConfiguration.Builder registerUiFragmentClass(Class<? extends FaceUiFragment> uiFragment) -
registerProcessingFragment
public LivenessConfiguration.Builder registerProcessingFragment(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
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
-
setSkipStep
-
setVibrateOnStep
-
setCopyright
-
setScreenOrientation
-
setType
-
setMetadata
-