package androidx.credentials; import android.credentials.GetCredentialException; import android.os.OutcomeReceiver; import android.util.Log; import android.view.View; import androidx.annotation.RequiresApi; import androidx.core.os.OutcomeReceiverKt$$ExternalSyntheticApiModelOutline0; import androidx.credentials.internal.FrameworkImplHelper; import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.Intrinsics; @RequiresApi(35) /* loaded from: classes.dex */ final class Api35Impl { public static final Api35Impl INSTANCE = new Api35Impl(); private Api35Impl() { } public final void setPendingGetCredentialRequest(View view, GetCredentialRequest request, final Function1 callback) { Intrinsics.checkNotNullParameter(view, "view"); Intrinsics.checkNotNullParameter(request, "request"); Intrinsics.checkNotNullParameter(callback, "callback"); view.setPendingCredentialRequest(FrameworkImplHelper.Companion.convertGetRequestToFrameworkClass(request), OutcomeReceiverKt$$ExternalSyntheticApiModelOutline0.m(new OutcomeReceiver() { // from class: androidx.credentials.Api35Impl$setPendingGetCredentialRequest$frameworkCallback$1 public /* bridge */ /* synthetic */ void onError(Throwable th) { onError(Api35Impl$setPendingGetCredentialRequest$frameworkCallback$1$$ExternalSyntheticApiModelOutline3.m(th)); } public /* bridge */ /* synthetic */ void onResult(Object obj) { onResult(Api35Impl$setPendingGetCredentialRequest$frameworkCallback$1$$ExternalSyntheticApiModelOutline0.m(obj)); } public void onResult(android.credentials.GetCredentialResponse response) { Intrinsics.checkNotNullParameter(response, "response"); Function1.this.invoke(FrameworkImplHelper.Companion.convertGetResponseToJetpackClass(response)); } public void onError(GetCredentialException error) { String type; String message; Intrinsics.checkNotNullParameter(error, "error"); StringBuilder sb = new StringBuilder(); sb.append("Error: "); type = error.getType(); sb.append(type); sb.append(" , "); message = error.getMessage(); sb.append(message); Log.w("ViewHandler", sb.toString()); } })); } public final void clearPendingGetCredentialRequest(View view) { Intrinsics.checkNotNullParameter(view, "view"); view.clearPendingCredentialRequest(); } }