Files
rr3-apk/decompiled/sources/com/applovin/mediation/nativeAds/adPlacer/MaxAdPlacerSettings.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

91 lines
2.1 KiB
Java

package com.applovin.mediation.nativeAds.adPlacer;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.applovin.impl.sdk.n;
import java.util.Set;
import java.util.TreeSet;
/* loaded from: classes2.dex */
public class MaxAdPlacerSettings {
public static final int MIN_REPEATING_INTERVAL = 2;
private final String a;
private String b;
private final Set c = new TreeSet();
private int d = 0;
private int e = 256;
private int f = 4;
public MaxAdPlacerSettings(String str) {
this.a = str;
}
public void addFixedPosition(int i) {
this.c.add(Integer.valueOf(i));
}
public String getAdUnitId() {
return this.a;
}
public Set<Integer> getFixedPositions() {
return this.c;
}
public int getMaxAdCount() {
return this.e;
}
public int getMaxPreloadedAdCount() {
return this.f;
}
@Nullable
public String getPlacement() {
return this.b;
}
public int getRepeatingInterval() {
return this.d;
}
public boolean hasValidPositioning() {
return !this.c.isEmpty() || isRepeatingEnabled();
}
public boolean isRepeatingEnabled() {
return this.d >= 2;
}
public void resetFixedPositions() {
this.c.clear();
}
public void setMaxAdCount(int i) {
this.e = i;
}
public void setMaxPreloadedAdCount(int i) {
this.f = i;
}
public void setPlacement(@Nullable String str) {
this.b = str;
}
@NonNull
public String toString() {
return "MaxAdPlacerSettings{adUnitId='" + this.a + "', fixedPositions=" + this.c + ", repeatingInterval=" + this.d + ", maxAdCount=" + this.e + ", maxPreloadedAdCount=" + this.f + '}';
}
public void setRepeatingInterval(int i) {
if (i >= 2) {
this.d = i;
n.g("MaxAdPlacerSettings", "Repeating interval set to " + i);
return;
}
this.d = 0;
n.j("MaxAdPlacerSettings", "Repeating interval has been disabled, since it has been set to " + i + ", which is less than minimum value of 2");
}
}