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

131 lines
4.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.kmc.kui.uicontrols.captureanimations;
import android.content.Context;
import com.kofax.kmc.kui.uicontrols.ImageCaptureView;
import com.kofax.kmc.kui.uicontrols.ImageCapturedListener;
import com.kofax.kmc.kut.utilities.error.ErrorInfo;
import com.kofax.kmc.kut.utilities.error.KmcRuntimeException;
import com.kofax.mobile.sdk._internal.capture.f;
import com.kofax.mobile.sdk._internal.view.n;
import o.InterfaceC13391fZD;
/* loaded from: classes3.dex */
public class SelfieBaseCaptureExperience {
protected Context _ctx;
private SelfieCaptureExperienceCriteriaHolder nm;
@InterfaceC13391fZD
f nn;
@InterfaceC13391fZD
n no;
public SelfieBaseCaptureExperience(ImageCaptureView imageCaptureView, SelfieCaptureExperienceCriteriaHolder selfieCaptureExperienceCriteriaHolder) {
if (imageCaptureView == null || selfieCaptureExperienceCriteriaHolder == null) {
throw new KmcRuntimeException(ErrorInfo.KMC_GN_NULL_POINTER_EXCEPTION);
}
this._ctx = imageCaptureView.getContext();
}
/* JADX INFO: Access modifiers changed from: protected */
public void initBase(ImageCaptureView imageCaptureView, SelfieCaptureExperienceCriteriaHolder selfieCaptureExperienceCriteriaHolder) {
this.nn.a(this.no);
setCaptureCriteria(selfieCaptureExperienceCriteriaHolder);
this.nn.a(imageCaptureView);
setVibrationEnabled(true);
}
/* JADX INFO: Access modifiers changed from: package-private */
public void setCaptureCriteria(SelfieCaptureExperienceCriteriaHolder selfieCaptureExperienceCriteriaHolder) {
if (selfieCaptureExperienceCriteriaHolder == null) {
throw new IllegalArgumentException("criteria is null");
}
this.nm = selfieCaptureExperienceCriteriaHolder;
this.nn.b(selfieCaptureExperienceCriteriaHolder);
}
public void setVibrationEnabled(boolean z) {
this.nn.setVibrationEnabled(z);
}
public boolean isVibrationEnabled() {
return this.nn.isVibrationEnabled();
}
public CaptureMessage getUserInstructionMessage() {
return new CaptureMessage(this.no.getUserInstructionMessage());
}
public CaptureMessage getBlinkMessage() {
return new CaptureMessage(this.no.getBlinkMessage());
}
public CaptureMessage getHoldSteadyMessage() {
return new CaptureMessage(this.no.getSteadyMessage());
}
public CaptureMessage getCapturedMessage() {
return new CaptureMessage(this.no.getCapturedMessage());
}
public void setUserInstructionMessage(CaptureMessage captureMessage) {
this.no.setUserInstructionMessage(captureMessage.mM);
}
public void setBlinkMessage(CaptureMessage captureMessage) {
this.no.setBlinkMessage(captureMessage.mM);
}
public void setHoldSteadyMessage(CaptureMessage captureMessage) {
this.no.setSteadyMessage(captureMessage.mM);
}
public void setCapturedMessage(CaptureMessage captureMessage) {
this.no.setCapturedMessage(captureMessage.mM);
}
public void takePicture() {
this.nn.d(false);
}
public void stopCapture() {
this.nn.stopCapture();
}
public void setOuterViewFinderColor(int i) {
this.nn.setOuterOverlayFrameColor(i);
}
public int getOuterViewFinderColor() {
return this.nn.getOuterOverlayFrameColor();
}
public void setFrameColor(int i) {
this.nn.setFrameColor(i);
}
public int getFrameColor() {
return this.nn.getFrameColor();
}
public double getPaddingPercent() {
return this.nm.getDetectionSettings().getTargetFramePaddingPercent();
}
public final void addOnImageCapturedListener(ImageCapturedListener imageCapturedListener) {
this.nn.addOnImageCapturedListener(imageCapturedListener);
}
public final void removeOnImageCapturedListener(ImageCapturedListener imageCapturedListener) {
this.nn.removeOnImageCapturedListener(imageCapturedListener);
}
public void destroy() {
this.nn.destroy();
}
public SelfieCaptureExperienceCriteriaHolder getCaptureCriteria() {
return this.nm;
}
}