what-the-bank/sources/com/facetec/sdk/bc.java

87 lines
2.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.facetec.sdk;
import java.lang.ref.WeakReference;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class bc implements FaceTecFaceScanResultCallback {
private final WeakReference<bg> c;
/* JADX INFO: Access modifiers changed from: package-private */
public bc(bg bgVar) {
this.c = new WeakReference<>(bgVar);
}
private bg a(boolean z) {
bg bgVar = this.c.get();
if (z) {
this.c.clear();
}
return bgVar;
}
@Override // com.facetec.sdk.FaceTecFaceScanResultCallback
public final void uploadMessageOverride(String str) {
bg a = a(false);
if (av.b(a)) {
a.d(str);
}
}
@Override // com.facetec.sdk.FaceTecFaceScanResultCallback
public final void uploadProgress(float f) {
bg a = a(false);
if (av.b(a)) {
a.a(f);
}
}
@Override // com.facetec.sdk.FaceTecFaceScanResultCallback
public final void succeed() {
succeed(FaceTecIDScanNextStep.SELECTION_SCREEN);
}
@Override // com.facetec.sdk.FaceTecFaceScanResultCallback
public final void succeed(FaceTecIDScanNextStep faceTecIDScanNextStep) {
FaceTecSDK.e++;
bg a = a(true);
if (av.b(a)) {
a.b(faceTecIDScanNextStep);
}
}
@Override // com.facetec.sdk.FaceTecFaceScanResultCallback
public final void retry() {
FaceTecSDK.h++;
bg a = a(true);
if (av.b(a)) {
a.A();
}
}
@Override // com.facetec.sdk.FaceTecFaceScanResultCallback
public final void cancel() {
FaceTecSDK.i++;
bg a = a(true);
if (av.b(a)) {
a.t = true;
t.a(a, d.DEVELOPER_USED_FACESCAN_CALLBACK, "cancel");
a.d(a.r.getStatus());
}
}
@Override // com.facetec.sdk.FaceTecFaceScanResultCallback
public final boolean proceedToNextStep(String str) {
return proceedToNextStep(str, FaceTecIDScanNextStep.SELECTION_SCREEN);
}
@Override // com.facetec.sdk.FaceTecFaceScanResultCallback
public final boolean proceedToNextStep(String str, FaceTecIDScanNextStep faceTecIDScanNextStep) {
bg a = a(true);
if (av.b(a)) {
return a.c(str, faceTecIDScanNextStep);
}
return false;
}
}