JieJing Cleaner v1.4.2版本的 MD5 值为:a574eea9fb07160f0bbb08ba0adf1c62
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.anythink.expressad.atsignalcommon.d;
import android.webkit.WebView;
import java.util.Locale;
import java.util.Map;
import org.json.JSONObject;
public final class a {
public static final String a = "placementType";
public static final String b = "state";
public static final String c = "viewable";
public static final String d = "currentAppOrientation";
public static final String e = "loading";
public static final String f = "default";
public static final String g = "expanded";
public static final String f1490h = "hidden";
public static final String f1491i = "resized";
public static final String j = "Interstitial";
public static final String k = "inline";
public static class C0046a {
public static final a a = new a();
}
public static a a() {
return C0046a.a;
}
public static void b(WebView webView, float f2, float f3) {
d(webView, String.format(Locale.CHINA, "javascript:window.mraidbridge.setMaxSize(%.1f, %.1f);", Float.valueOf(f2), Float.valueOf(f3)));
}
public static void c(WebView webView, float f2, float f3) {
d(webView, String.format(Locale.CHINA, "javascript:window.mraidbridge.notifySizeChangeEvent(%.1f, %.1f);", Float.valueOf(f2), Float.valueOf(f3)));
}
public static void d(WebView webView, String str) {
if (webView != null) {
try {
webView.loadUrl(str);
} catch (Throwable th) {
th.printStackTrace();
}
}
}
public static void a(WebView webView) {
d(webView, "javascript:window.mraidbridge.fireReadyEvent();");
}
public static void a(WebView webView, Map<String, Object> map) {
if (map.size() == 0) {
return;
}
JSONObject jSONObject = new JSONObject();
for (Map.Entry<String, Object> entry : map.entrySet()) {
try {
jSONObject.put(entry.getKey(), entry.getValue());
} catch (Exception e2) {
e2.printStackTrace();
}
}
d(webView, String.format("javascript:window.mraidbridge.fireChangeEvent(%s);", jSONObject.toString()));
}
public static void b(WebView webView, float f2, float f3, float f4, float f5) {
d(webView, String.format(Locale.CHINA, "javascript:window.mraidbridge.setCurrentPosition(%.1f, %.1f, %.1f, %.1f);", Float.valueOf(f2), Float.valueOf(f3), Float.valueOf(f4), Float.valueOf(f5)));
}
public static void c(WebView webView, String str) {
d(webView, String.format("javascript:window.mraidbridge.setPlacementType(%s);", str));
}
public static void b(WebView webView, String str) {
d(webView, String.format("javascript:window.mraidbridge.setIsViewable(%s);", str));
}
public static void a(WebView webView, String str, String str2) {
d(webView, String.format("javascript:window.mraidbridge.fireErrorEvent('%1s', '%2s');", str2, str));
}
public static void a(WebView webView, double d2) {
d(webView, String.format(Locale.CHINA, "javascript:window.mraidbridge.audioVolumeChange(%s);", Double.valueOf(d2)));
}
public static void a(WebView webView, float f2, float f3) {
d(webView, String.format(Locale.CHINA, "javascript:window.mraidbridge.setScreenSize(%.1f, %.1f);", Float.valueOf(f2), Float.valueOf(f3)));
}
public static void a(WebView webView, float f2, float f3, float f4, float f5) {
d(webView, String.format(Locale.CHINA, "javascript:window.mraidbridge.setDefaultPosition(%.1f, %.1f, %.1f, %.1f);", Float.valueOf(f2), Float.valueOf(f3), Float.valueOf(f4), Float.valueOf(f5)));
}
public static void a(WebView webView, String str) {
d(webView, String.format("javascript:window.mraidbridge.nativeCallComplete('%s');", str));
}
}