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

63 lines
2.9 KiB
Java

package com.kofax.kmc.kui.uicontrols.captureanimations;
import android.content.Context;
import com.kofax.kmc.kui.uicontrols.ImageCaptureView;
import com.kofax.mobile.sdk._internal.dagger.Injector;
import com.kofax.mobile.sdk.ak.c;
import com.kofax.mobile.sdk.l.f;
import o.InterfaceC13391fZD;
/* loaded from: classes3.dex */
public class DocumentCaptureExperience extends DocumentBaseCaptureExperience {
private static final String TAG = "DocumentCaptureExperience";
private DocumentCaptureExperienceCriteriaHolder nd;
@InterfaceC13391fZD
f ne;
public DocumentCaptureExperience(ImageCaptureView imageCaptureView) {
this(imageCaptureView, a((DocumentCaptureExperienceCriteriaHolder) null), false);
}
public DocumentCaptureExperience(ImageCaptureView imageCaptureView, DocumentCaptureExperienceCriteriaHolder documentCaptureExperienceCriteriaHolder) {
this(imageCaptureView, a(documentCaptureExperienceCriteriaHolder), true);
}
private static DocumentCaptureExperienceCriteriaHolder a(DocumentCaptureExperienceCriteriaHolder documentCaptureExperienceCriteriaHolder) {
return documentCaptureExperienceCriteriaHolder != null ? documentCaptureExperienceCriteriaHolder : new DocumentCaptureExperienceCriteriaHolder();
}
private DocumentCaptureExperience(ImageCaptureView imageCaptureView, DocumentCaptureExperienceCriteriaHolder documentCaptureExperienceCriteriaHolder, boolean z) {
super(imageCaptureView, documentCaptureExperienceCriteriaHolder);
Injector.getInjector(this._ctx.getApplicationContext()).injectMembers(this);
initBase(imageCaptureView, this.ne, documentCaptureExperienceCriteriaHolder);
a(documentCaptureExperienceCriteriaHolder, z);
}
public void setCaptureCriteria(DocumentCaptureExperienceCriteriaHolder documentCaptureExperienceCriteriaHolder) {
a(documentCaptureExperienceCriteriaHolder, true);
}
private void a(DocumentCaptureExperienceCriteriaHolder documentCaptureExperienceCriteriaHolder, boolean z) {
if (documentCaptureExperienceCriteriaHolder == null) {
throw new IllegalArgumentException("criteria is null");
}
DocumentCaptureExperienceCriteriaHolder documentCaptureExperienceCriteriaHolder2 = new DocumentCaptureExperienceCriteriaHolder(documentCaptureExperienceCriteriaHolder);
this.nd = documentCaptureExperienceCriteriaHolder2;
super.a((DocumentBaseCaptureExperienceCriteriaHolder) documentCaptureExperienceCriteriaHolder2);
this.ne.c((f) this.nd.getDetectionSettings());
if (this._captureController.hasDocumentSampleImage() || !z) {
return;
}
c(this._ctx);
}
public DocumentCaptureExperienceCriteriaHolder getCaptureCriteria() {
return new DocumentCaptureExperienceCriteriaHolder(this.nd);
}
private void c(Context context) {
setDocumentSampleImage(c.a(context, "document_sample"));
}
}