Perfume Of Love v2.14.9版本的 MD5 值为:16011aefc5a55805771706ce3b259b4e
以下内容为反编译后的 k1.java 源代码,内容仅作参考
package com.chartboost.sdk.impl;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
import com.tapjoy.TJAdUnitConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.json.JSONObject;
@Metadata(bv = {}, d1 = {"\u00002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u0007\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001B\u0011\u0012\b\u0010\u0012\u001a\u0004\u0018\u00010\u0011¢\u0006\u0004\b\u0013\u0010\u0014J\u0010\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002J\u0010\u0010\u0006\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002J\u0018\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\b\u001a\u00020\u0007J\u0010\u0010\t\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002J\u0018\u0010\u0006\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\n\u001a\u00020\u0007J\u0010\u0010\u000b\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002J\u001a\u0010\u0006\u001a\u00020\u00042\u0006\u0010\r\u001a\u00020\f2\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0002J\"\u0010\u0005\u001a\u00020\u00042\u0006\u0010\r\u001a\u00020\f2\u0006\u0010\u000e\u001a\u00020\f2\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0002J\u001a\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u000f\u001a\u00020\f2\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0002J\n\u0010\u000b\u001a\u0004\u0018\u00010\fH\u0002J\n\u0010\u0005\u001a\u0004\u0018\u00010\fH\u0002J\n\u0010\u0006\u001a\u0004\u0018\u00010\u0010H\u0002¨\u0006\u0015"}, d2 = {"Lcom/chartboost/sdk/impl/k1;", "", "Lcom/chartboost/sdk/impl/s1;", "webview", "", "a", "b", "", TJAdUnitConstants.String.VIDEO_CURRENT_TIME, "d", IronSourceConstants.EVENTS_DURATION, com.mbridge.msdk.foundation.db.c.a, "", "function", "param", "url", "Lcom/chartboost/sdk/internal/Model/a;", "Lcom/chartboost/sdk/impl/o1;", "viewController", "<init>", "(Lcom/chartboost/sdk/impl/o1;)V", "Chartboost-9.2.0_productionRelease"}, k = 1, mv = {1, 6, 0})
public final class k1 {
public final o1 a;
public k1(o1 o1Var) {
this.a = o1Var;
}
public final void a(s1 s1Var) {
b("onBackground", s1Var);
}
public final void b(s1 s1Var) {
b("onForeground", s1Var);
}
public final void c(s1 s1Var) {
b("videoEnded", s1Var);
}
public final void d(s1 s1Var) {
b("videoFailed", s1Var);
}
public final void a(s1 s1Var, float f) {
JSONObject jSONObject = new JSONObject();
jSONObject.put("seconds", Float.valueOf(f));
String jSONObject2 = jSONObject.toString();
Intrinsics.checkNotNullExpressionValue(jSONObject2, "json.toString()");
a("playbackTime", jSONObject2, s1Var);
}
public final void b(s1 s1Var, float f) {
JSONObject jSONObject = new JSONObject();
jSONObject.put("totalDuration", Float.valueOf(f));
String jSONObject2 = jSONObject.toString();
Intrinsics.checkNotNullExpressionValue(jSONObject2, "json.toString()");
a("videoStarted", jSONObject2, s1Var);
}
public final String c() {
String str;
com.chartboost.sdk.internal.Model.a b = b();
return (b == null || (str = b.m) == null) ? "" : str;
}
public final void a(String str, String str2, s1 s1Var) {
a("javascript:Chartboost.EventHandler.handleNativeEvent(\"" + str + "\", " + str2 + ')', s1Var);
}
public final void b(String str, s1 s1Var) {
a("javascript:Chartboost.EventHandler.handleNativeEvent(\"" + str + "\")", s1Var);
}
public final void a(String str, s1 s1Var) {
try {
if (s1Var != null) {
s3.a("CBTemplateProxy", "Calling native to javascript: " + str);
s1Var.loadUrl(str);
} else {
s2.d(new i2("show_webview_error", "Webview is null", a(), c()));
s3.c("CBTemplateProxy", "Calling native to javascript webview is null");
}
} catch (Exception e) {
s2.d(new i2("show_webview_crash", "Cannot open url", a(), c()));
s3.c("CBTemplateProxy", "Calling native to javascript. Cannot open url: " + e);
}
}
public final com.chartboost.sdk.internal.Model.a b() {
f4 a;
o1 o1Var = this.a;
if (o1Var == null || (a = o1Var.a()) == null) {
return null;
}
return a.getImpression();
}
public final String a() {
com.chartboost.sdk.internal.Model.a b = b();
if (b != null) {
j jVar = b.c;
String b2 = jVar != null ? jVar.b() : null;
if (b2 != null) {
return b2;
}
}
return "";
}
}