Package com.regula.facesdk.configuration
Class LivenessConfiguration
- java.lang.Object
-
- com.regula.facesdk.configuration.CameraConfiguration
-
- com.regula.facesdk.configuration.LivenessConfiguration
-
public final class LivenessConfiguration extends CameraConfiguration
The configuration provides convenient properties to change the behavior and the appearance of the Liveness UI module.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LivenessConfiguration.Builder
Build a newLivenessConfiguration
.
-
Field Summary
Fields Modifier and Type Field Description static <any>
CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description protected
LivenessConfiguration(LivenessConfiguration.Builder init)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
int
getAttemptsCount()
Returns the number of attemptsJSONObject
getMetadata()
java.lang.Class<? extends BaseFaceLivenessProcessingFragment>
getProcessingFragment()
RecordingProcess
getRecordingProcess()
Return the flag fromRecordingProcess
enum to recording liveness processLivenessSkipStep[]
getSkipStep()
java.lang.String
getTag()
LivenessType
getType()
boolean
isLocationTrackingEnabled()
void
writeToParcel(Parcel dest, int flags)
-
Methods inherited from class com.regula.facesdk.configuration.CameraConfiguration
getCameraId, getRegisteredUiFragmentClass, getScreenOrientation, getScreenOrientationInt, hasCopyright, isCameraSwitchEnabled, isCloseButtonEnabled, isTorchButtonEnabled, isVibrateOnSteps
-
-
-
-
Constructor Detail
-
LivenessConfiguration
protected LivenessConfiguration(LivenessConfiguration.Builder init)
-
-
Method Detail
-
getAttemptsCount
public int getAttemptsCount()
Returns the number of attempts- Returns:
- When attemptsCount is `0` Liveness will always ask to retry on error. When attemptsCount is `1` or more Liveness will end with ProcessingAttemptsEnded error when the number of attemps exceeds.
-
getRecordingProcess
public RecordingProcess getRecordingProcess()
Return the flag fromRecordingProcess
enum to recording liveness process- Returns:
- Default:
RecordingProcess.ASYNCHRONOUS_UPLOAD
.
-
isLocationTrackingEnabled
public boolean isLocationTrackingEnabled()
-
getTag
public java.lang.String getTag()
-
getSkipStep
public LivenessSkipStep[] getSkipStep()
-
getType
public LivenessType getType()
-
getMetadata
public JSONObject getMetadata()
-
getProcessingFragment
public java.lang.Class<? extends BaseFaceLivenessProcessingFragment> getProcessingFragment()
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
- Overrides:
writeToParcel
in classCameraConfiguration
-
describeContents
public int describeContents()
-
-