package y7;

import android.content.Context;
import androidx.annotation.Nullable;
import com.google.android.gms.common.internal.w;
import com.google.android.gms.internal.ads.ao;
import com.google.android.gms.internal.ads.i10;
import com.google.android.gms.internal.ads.mp;
import com.google.android.gms.internal.ads.vs0;
import g7.f;
import g7.j;
import g7.n;
import k.h;
import n7.y;
import q7.b;

/* JADX INFO: loaded from: classes2.dex */
public abstract class a {
    public static void a(Context context, String str, f fVar, vs0 vs0Var) {
        if (context == null) {
            throw new NullPointerException("Context cannot be null.");
        }
        if (str == null) {
            throw new NullPointerException("AdUnitId cannot be null.");
        }
        if (fVar == null) {
            throw new NullPointerException("AdRequest cannot be null.");
        }
        w.d("#008 Must be called on the main UI thread.");
        ao.a(context);
        if (((Boolean) mp.f14335k.j()).booleanValue()) {
            if (((Boolean) y.f31093e.f31096c.b(ao.f9089tc)).booleanValue()) {
                b.f32218b.execute(new h(context, str, fVar, vs0Var, 8, 0));
                return;
            }
        }
        new i10(context, str).b(fVar.f26279a, vs0Var);
    }

    @Nullable
    public abstract j getFullScreenContentCallback();

    @Nullable
    public abstract x7.a getOnAdMetadataChangedListener();

    @Nullable
    public abstract n getOnPaidEventListener();

    public abstract void setFullScreenContentCallback(@Nullable j jVar);

    public abstract void setOnAdMetadataChangedListener(@Nullable x7.a aVar);

    public abstract void setOnPaidEventListener(@Nullable n nVar);
}
