what-the-bank/sources/com/kofax/kmc/kui/uicontrols/captureanimations/CaptureExperienceCriteriaHo...

113 lines
3.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.kmc.kui.uicontrols.captureanimations;
import com.kofax.kmc.kut.utilities.error.ErrorInfo;
import com.kofax.kmc.kut.utilities.error.KmcRuntimeException;
/* loaded from: classes3.dex */
public class CaptureExperienceCriteriaHolder {
private boolean mr = true;
private int ms = 95;
private boolean mt = true;
private int mu = 15;
private boolean mv = true;
private int mw = 15;
private boolean mx = true;
private boolean my = true;
private boolean mz = true;
public CaptureExperienceCriteriaHolder() {
}
CaptureExperienceCriteriaHolder(CaptureExperienceCriteriaHolder captureExperienceCriteriaHolder) {
setFocusEnabled(captureExperienceCriteriaHolder.isFocusEnabled());
setStabilityThresholdEnabled(captureExperienceCriteriaHolder.isStabilityThresholdEnabled());
setStabilityThreshold(captureExperienceCriteriaHolder.getStabilityThreshold());
setRollThresholdEnabled(captureExperienceCriteriaHolder.isRollThresholdEnabled());
setRollThreshold(captureExperienceCriteriaHolder.getRollThreshold());
setPitchThresholdEnabled(captureExperienceCriteriaHolder.isPitchThresholdEnabled());
setPitchThreshold(captureExperienceCriteriaHolder.getPitchThreshold());
setOrientationEnabled(captureExperienceCriteriaHolder.isOrientationEnabled());
}
public void setStabilityThreshold(int i) {
if (i < 0 || i > 100) {
throw new KmcRuntimeException(ErrorInfo.KMC_UI_INVALID_STABILITY_DELAY_ARGUMENT);
}
this.ms = i;
}
public void setPitchThreshold(int i) {
if (i < 0 || i > 45) {
throw new KmcRuntimeException(ErrorInfo.KMC_UI_INVALID_THRESHOLD_ARGUMENT);
}
this.mu = i;
}
public void setRollThreshold(int i) {
if (i < 0 || i > 45) {
throw new KmcRuntimeException(ErrorInfo.KMC_UI_INVALID_THRESHOLD_ARGUMENT);
}
this.mw = i;
}
public void setStabilityThresholdEnabled(boolean z) {
this.mr = z;
}
public void setRollThresholdEnabled(boolean z) {
this.mv = z;
}
public void setRefocusEnabled(boolean z) {
this.mz = z;
}
public void setPitchThresholdEnabled(boolean z) {
this.mt = z;
}
public void setOrientationEnabled(boolean z) {
this.my = z;
}
public void setFocusEnabled(boolean z) {
this.mx = z;
}
public boolean isStabilityThresholdEnabled() {
return this.mr;
}
public boolean isRollThresholdEnabled() {
return this.mv;
}
public boolean isRefocusBeforeCaptureEnabled() {
return this.mz;
}
public boolean isPitchThresholdEnabled() {
return this.mt;
}
public boolean isOrientationEnabled() {
return this.my;
}
public boolean isFocusEnabled() {
return this.mx;
}
public int getStabilityThreshold() {
return this.ms;
}
public int getRollThreshold() {
return this.mw;
}
public int getPitchThreshold() {
return this.mu;
}
}