- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
110 lines
3.8 KiB
Java
110 lines
3.8 KiB
Java
package com.applovin.mediation.ads;
|
|
|
|
import android.content.Context;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import com.applovin.impl.mediation.ads.MaxFullscreenAdImpl;
|
|
import com.applovin.impl.mediation.ads.a;
|
|
import com.applovin.impl.sdk.j;
|
|
import com.applovin.impl.yp;
|
|
import com.applovin.mediation.MaxAdExpirationListener;
|
|
import com.applovin.mediation.MaxAdFormat;
|
|
import com.applovin.mediation.MaxAdListener;
|
|
import com.applovin.mediation.MaxAdRequestListener;
|
|
import com.applovin.mediation.MaxAdRevenueListener;
|
|
import com.applovin.mediation.MaxAdReviewListener;
|
|
import com.applovin.sdk.AppLovinSdk;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class MaxAppOpenAd {
|
|
private final MaxFullscreenAdImpl a;
|
|
|
|
public MaxAppOpenAd(@NonNull String str, @NonNull Context context) {
|
|
this(str, AppLovinSdk.getInstance(context), context);
|
|
}
|
|
|
|
public void destroy() {
|
|
this.a.logApiCall("destroy()");
|
|
this.a.destroy();
|
|
}
|
|
|
|
@NonNull
|
|
public String getAdUnitId() {
|
|
return this.a.getAdUnitId();
|
|
}
|
|
|
|
public boolean isReady() {
|
|
boolean isReady = this.a.isReady();
|
|
this.a.logApiCall("isReady() " + isReady + " for ad unit id " + this.a.getAdUnitId());
|
|
return isReady;
|
|
}
|
|
|
|
public void loadAd() {
|
|
this.a.logApiCall("loadAd()");
|
|
this.a.loadAd();
|
|
}
|
|
|
|
public void setAdReviewListener(MaxAdReviewListener maxAdReviewListener) {
|
|
this.a.logApiCall("setAdReviewListener(listener=" + maxAdReviewListener + ")");
|
|
this.a.setAdReviewListener(maxAdReviewListener);
|
|
}
|
|
|
|
public void setExpirationListener(MaxAdExpirationListener maxAdExpirationListener) {
|
|
this.a.logApiCall("setExpirationListener(listener=" + maxAdExpirationListener + ")");
|
|
this.a.setExpirationListener(maxAdExpirationListener);
|
|
}
|
|
|
|
public void setExtraParameter(@NonNull String str, @Nullable String str2) {
|
|
this.a.logApiCall("setExtraParameter(key=" + str + ", value=" + str2 + ")");
|
|
this.a.setExtraParameter(str, str2);
|
|
}
|
|
|
|
public void setListener(@Nullable MaxAdListener maxAdListener) {
|
|
this.a.logApiCall("setListener(listener=" + maxAdListener + ")");
|
|
this.a.setListener(maxAdListener);
|
|
}
|
|
|
|
public void setLocalExtraParameter(@NonNull String str, @Nullable Object obj) {
|
|
this.a.logApiCall("setLocalExtraParameter(key=" + str + ", value=" + obj + ")");
|
|
this.a.setLocalExtraParameter(str, obj);
|
|
}
|
|
|
|
public void setRequestListener(MaxAdRequestListener maxAdRequestListener) {
|
|
this.a.logApiCall("setRequestListener(listener=" + maxAdRequestListener + ")");
|
|
this.a.setRequestListener(maxAdRequestListener);
|
|
}
|
|
|
|
public void setRevenueListener(@Nullable MaxAdRevenueListener maxAdRevenueListener) {
|
|
this.a.logApiCall("setRevenueListener(listener=" + maxAdRevenueListener + ")");
|
|
this.a.setRevenueListener(maxAdRevenueListener);
|
|
}
|
|
|
|
public void showAd() {
|
|
showAd(null);
|
|
}
|
|
|
|
@NonNull
|
|
public String toString() {
|
|
return "" + this.a;
|
|
}
|
|
|
|
public MaxAppOpenAd(@NonNull String str, @NonNull AppLovinSdk appLovinSdk) {
|
|
this(str, appLovinSdk, j.l());
|
|
}
|
|
|
|
public void showAd(@Nullable String str) {
|
|
showAd(str, null);
|
|
}
|
|
|
|
private MaxAppOpenAd(String str, AppLovinSdk appLovinSdk, Context context) {
|
|
a.logApiCall("MaxAppOpenAd", "MaxAppOpenAd(adUnitId=" + str + ", sdk=" + appLovinSdk + ", context=" + context + ")");
|
|
this.a = new MaxFullscreenAdImpl(str.trim(), MaxAdFormat.APP_OPEN, null, "MaxAppOpenAd", appLovinSdk.a(), context);
|
|
}
|
|
|
|
public void showAd(@Nullable String str, @Nullable String str2) {
|
|
this.a.logApiCall("showAd(placement=" + str + ", customData=" + str2 + ")");
|
|
yp.b(str2, "MaxAppOpenAd");
|
|
this.a.showAd(str, str2, null);
|
|
}
|
|
}
|