70 lines
3.3 KiB
Java
70 lines
3.3 KiB
Java
|
package com.kofax.mobile.sdk.y;
|
||
|
|
||
|
import com.kofax.BuildConfig;
|
||
|
import com.kofax.mobile.sdk.extract.id.AggregateException;
|
||
|
import com.kofax.mobile.sdk.extract.id.IIdExtractionListener;
|
||
|
import com.kofax.mobile.sdk.extract.id.IIdExtractionResult;
|
||
|
import com.kofax.mobile.sdk.extract.id.IIdExtractor;
|
||
|
import com.kofax.mobile.sdk.extract.id.IdExtractionParameters;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.gjZ;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public class p implements IIdExtractor {
|
||
|
private final IIdExtractor St;
|
||
|
private final gjZ Su = new gjZ();
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public p(@com.kofax.mobile.sdk.z.a IIdExtractor iIdExtractor) {
|
||
|
this.St = iIdExtractor;
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.mobile.sdk.extract.id.IIdExtractor
|
||
|
public void extractFields(IdExtractionParameters idExtractionParameters) {
|
||
|
com.kofax.mobile.sdk._internal.k.b(BuildConfig.TIMING_TAG, "Entering extraction...");
|
||
|
this.St.extractFields(new IdExtractionParameters(idExtractionParameters.getProjectName(), idExtractionParameters.getIdType(), idExtractionParameters.getFrontImage(), idExtractionParameters.getFrontBarcodes(), idExtractionParameters.getBackImage(), idExtractionParameters.getBackBarcodes(), idExtractionParameters.isProcessed(), idExtractionParameters.getExtractFaceImage(), idExtractionParameters.getExtractSignatureImage(), new IIdExtractionListener(this, idExtractionParameters) { // from class: com.kofax.mobile.sdk.y.p.1
|
||
|
final IdExtractionParameters Lz;
|
||
|
final p Sv;
|
||
|
|
||
|
{
|
||
|
this.Sv = this;
|
||
|
this.Lz = idExtractionParameters;
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.mobile.sdk.extract.id.IIdExtractionListener
|
||
|
public void onExtractionComplete(IIdExtractionResult iIdExtractionResult, AggregateException aggregateException) {
|
||
|
StringBuilder sb = new StringBuilder("IIdExtractor.extractFields(");
|
||
|
sb.append(this.Lz.getProjectName());
|
||
|
sb.append(", ");
|
||
|
sb.append(this.Lz.getFrontImage() != null ? "<image>, " : "<null>, ");
|
||
|
sb.append(this.Lz.getBackImage() != null ? "<image>, " : "<null>, ");
|
||
|
sb.append(this.Lz.getListener() != null ? "<listener>): " : "<null>): ");
|
||
|
String obj = sb.toString();
|
||
|
StringBuilder sb2 = new StringBuilder();
|
||
|
sb2.append(obj);
|
||
|
sb2.append(this.Sv.Su.toString());
|
||
|
com.kofax.mobile.sdk._internal.k.b(BuildConfig.TIMING_TAG, sb2.toString());
|
||
|
com.kofax.mobile.sdk._internal.k.b(BuildConfig.TIMING_TAG, "Extraction complete.");
|
||
|
if (this.Lz.getListener() != null) {
|
||
|
this.Lz.getListener().onExtractionComplete(iIdExtractionResult, aggregateException);
|
||
|
}
|
||
|
gjZ gjz = this.Sv.Su;
|
||
|
gjz.e = gjZ.LWm.UNSTARTED;
|
||
|
gjz.a = gjZ.RVV.UNSPLIT;
|
||
|
}
|
||
|
}, idExtractionParameters.getImageProcessingListener()));
|
||
|
gjZ gjz = this.Su;
|
||
|
gjz.e = gjZ.LWm.UNSTARTED;
|
||
|
gjz.a = gjZ.RVV.UNSPLIT;
|
||
|
this.Su.a();
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.mobile.sdk.extract.id.IIdExtractor
|
||
|
public void cancel() {
|
||
|
gjZ gjz = this.Su;
|
||
|
gjz.e = gjZ.LWm.UNSTARTED;
|
||
|
gjz.a = gjZ.RVV.UNSPLIT;
|
||
|
this.St.cancel();
|
||
|
}
|
||
|
}
|