package com.unity3d.mediation.banner; import android.content.Context; import android.util.AttributeSet; import android.widget.FrameLayout; import com.ironsource.p6; import com.ironsource.zj; import com.unity3d.mediation.LevelPlayAdSize; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.Intrinsics; /* loaded from: classes4.dex */ public final class LevelPlayBannerAdView extends FrameLayout { private final zj a; /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */ public LevelPlayBannerAdView(Context context) { this(context, null, 0, 6, null); Intrinsics.checkNotNullParameter(context, "context"); } /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */ public LevelPlayBannerAdView(Context context, AttributeSet attributeSet) { this(context, attributeSet, 0, 4, null); Intrinsics.checkNotNullParameter(context, "context"); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public LevelPlayBannerAdView(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); Intrinsics.checkNotNullParameter(context, "context"); p6 a = a(context); addView(a); this.a = new zj(a, attributeSet); } public /* synthetic */ LevelPlayBannerAdView(Context context, AttributeSet attributeSet, int i, int i2, DefaultConstructorMarker defaultConstructorMarker) { this(context, (i2 & 2) != 0 ? null : attributeSet, (i2 & 4) != 0 ? 0 : i); } /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */ public LevelPlayBannerAdView(Context context, String adUnitId) { this(context, null, 0, 6, null); Intrinsics.checkNotNullParameter(context, "context"); Intrinsics.checkNotNullParameter(adUnitId, "adUnitId"); this.a.a(adUnitId); } private final p6 a(Context context) { p6 p6Var = new p6(context); p6Var.setLayoutParams(new FrameLayout.LayoutParams(-1, -1)); return p6Var; } public final void destroy() { this.a.f(); } public final LevelPlayAdSize getAdSize() { return this.a.g(); } public final String getAdUnitId() { return this.a.b(); } public final LevelPlayBannerAdViewListener getBannerListener() { return this.a.h(); } public final String getPlacementName() { return this.a.i(); } public final void loadAd() { this.a.k(); } public final void pauseAutoRefresh() { this.a.l(); } public final void resumeAutoRefresh() { this.a.m(); } public final void setAdSize(LevelPlayAdSize adSize) { Intrinsics.checkNotNullParameter(adSize, "adSize"); this.a.a(adSize); } public final void setBannerListener(LevelPlayBannerAdViewListener levelPlayBannerAdViewListener) { this.a.a(levelPlayBannerAdViewListener); } public final void setPlacementName(String str) { zj zjVar = this.a; if (str == null) { str = ""; } zjVar.b(str); } }