Step Record v1.1.5版本的 MD5 值为:5797275f89198878d2f00ee92d534382
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.mbridge.msdk.mbsignalcommon.mraid;
import android.webkit.WebView;
import java.util.Locale;
import java.util.Map;
import org.json.JSONObject;
public final class a {
public static class C0381a {
private static final a a = new a();
}
public static a a() {
return C0381a.a;
}
public final void b(WebView webView, float f, float f2) {
c(webView, String.format(Locale.CHINA, "javascript:window.mraidbridge.setScreenSize(%.1f, %.1f);", Float.valueOf(f), Float.valueOf(f2)));
}
public final void c(WebView webView, float f, float f2) {
c(webView, String.format(Locale.CHINA, "javascript:window.mraidbridge.setMaxSize(%.1f, %.1f);", Float.valueOf(f), Float.valueOf(f2)));
}
public final void a(WebView webView) {
c(webView, "javascript:window.mraidbridge.fireReadyEvent();");
}
private void c(WebView webView, String str) {
if (webView != null) {
try {
webView.loadUrl(str);
} catch (Throwable th) {
th.printStackTrace();
}
}
}
public final void a(WebView webView, Map<String, Object> map) {
if (map == null || 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 e) {
e.printStackTrace();
}
}
c(webView, String.format("javascript:window.mraidbridge.fireChangeEvent(%s);", jSONObject.toString()));
}
public final void b(WebView webView, float f, float f2, float f3, float f4) {
c(webView, String.format(Locale.CHINA, "javascript:window.mraidbridge.setCurrentPosition(%.1f, %.1f, %.1f, %.1f);", Float.valueOf(f), Float.valueOf(f2), Float.valueOf(f3), Float.valueOf(f4)));
}
public final void b(WebView webView, String str) {
c(webView, String.format("javascript:window.mraidbridge.setIsViewable(%s);", str));
}
public final void a(WebView webView, String str, String str2) {
c(webView, String.format("javascript:window.mraidbridge.fireErrorEvent('%1s', '%2s');", str2, str));
}
public final void a(WebView webView, float f, float f2) {
c(webView, String.format(Locale.CHINA, "javascript:window.mraidbridge.notifySizeChangeEvent(%.1f, %.1f);", Float.valueOf(f), Float.valueOf(f2)));
}
public final void a(WebView webView, double d) {
c(webView, String.format(Locale.CHINA, "javascript:window.mraidbridge.audioVolumeChange(%s);", Double.valueOf(d)));
}
public final void a(WebView webView, float f, float f2, float f3, float f4) {
c(webView, String.format(Locale.CHINA, "javascript:window.mraidbridge.setDefaultPosition(%.1f, %.1f, %.1f, %.1f);", Float.valueOf(f), Float.valueOf(f2), Float.valueOf(f3), Float.valueOf(f4)));
}
public final void a(WebView webView, String str) {
c(webView, String.format("javascript:window.mraidbridge.nativeCallComplete('%s');", str));
}
}