what-the-bank/sources/o/C14812gG.java

42 lines
1.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import com.facetec.sdk.FaceTecFaceScanProcessor;
import com.facetec.sdk.FaceTecFaceScanResultCallback;
import com.facetec.sdk.FaceTecSessionActivity;
import com.facetec.sdk.FaceTecSessionResult;
import com.facetec.sdk.FaceTecSessionStatus;
/* renamed from: o.gG, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C14812gG extends AbstractC14814gI implements FaceTecFaceScanProcessor {
private boolean a = false;
private Sts b;
/* renamed from: o.gG$Sts */
/* loaded from: classes3.dex */
public interface Sts {
void d(FaceTecSessionResult faceTecSessionResult);
void e();
}
public C14812gG(String str, Context context, Sts sts) {
this.b = sts;
FaceTecSessionActivity.createAndLaunchSession(context, this, str);
}
@Override // com.facetec.sdk.FaceTecFaceScanProcessor
public final void processSessionWhileFaceTecSDKWaits(FaceTecSessionResult faceTecSessionResult, FaceTecFaceScanResultCallback faceTecFaceScanResultCallback) {
if (faceTecSessionResult.getStatus() != FaceTecSessionStatus.SESSION_COMPLETED_SUCCESSFULLY) {
faceTecFaceScanResultCallback.cancel();
this.b.e();
}
if (faceTecSessionResult.getFaceScanBase64().isEmpty() || faceTecSessionResult.getAuditTrailCompressedBase64().length == 0 || faceTecSessionResult.getLowQualityAuditTrailCompressedBase64().length == 0) {
return;
}
faceTecFaceScanResultCallback.cancel();
this.b.d(faceTecSessionResult);
}
}