- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
77 lines
2.0 KiB
Java
77 lines
2.0 KiB
Java
package com.mbridge.msdk.out;
|
|
|
|
import android.content.Context;
|
|
import android.text.TextUtils;
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.mbridge.msdk.foundation.controller.c;
|
|
import com.mbridge.msdk.foundation.tools.ak;
|
|
import com.mbridge.msdk.interstitial.c.a;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class MBInterstitialHandler {
|
|
private a mController;
|
|
private String unitId;
|
|
|
|
public MBInterstitialHandler(Context context, Map<String, Object> map) {
|
|
if (this.mController == null) {
|
|
this.mController = new a();
|
|
}
|
|
if (map != null && map.containsKey(MBridgeConstans.PROPERTIES_UNIT_ID)) {
|
|
String str = (String) map.get(MBridgeConstans.PROPERTIES_UNIT_ID);
|
|
this.unitId = str;
|
|
if (!TextUtils.isEmpty(str)) {
|
|
String e = ak.e(str);
|
|
if (!TextUtils.isEmpty(e)) {
|
|
ak.b(str, e);
|
|
}
|
|
}
|
|
}
|
|
this.mController.a(context, map);
|
|
if (c.m().c() != null || context == null) {
|
|
return;
|
|
}
|
|
c.m().b(context);
|
|
}
|
|
|
|
public void preload() {
|
|
try {
|
|
a aVar = this.mController;
|
|
if (aVar != null) {
|
|
aVar.a();
|
|
}
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
public String getRequestId() {
|
|
a aVar = this.mController;
|
|
return aVar != null ? aVar.b() : "";
|
|
}
|
|
|
|
public String getCreativeIdWithUnitId() {
|
|
a aVar = this.mController;
|
|
return aVar != null ? aVar.c() : "";
|
|
}
|
|
|
|
public void show() {
|
|
try {
|
|
this.mController.d();
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
public void setInterstitialListener(InterstitialListener interstitialListener) {
|
|
try {
|
|
a aVar = this.mController;
|
|
if (aVar != null) {
|
|
aVar.a(interstitialListener);
|
|
}
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|