整点视频 v3.3.0版本的 MD5 值为:cba0457dc37421eed445b30f92de25d3
以下内容为反编译后的 ODBannerView.java 源代码,内容仅作参考
package com.kc.openset.sdk.dsp.banner;
import android.app.Activity;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import com.bytedance.sdk.openadsdk.api.plugin.PluginConstants;
import com.jiagu.sdk.OSETSDKProtected;
import com.kc.openset.sdk.dsp.util.ODData;
import com.kc.openset.sdk.dsp.util.ODListener;
import com.kc.openset.sdk.dsp.util.g;
import java.io.IOException;
import java.util.Map;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Response;
public class ODBannerView {
private ViewGroup a;
private ODListener b;
private View c;
private Activity d;
private String e;
private final Handler f = new a(Looper.getMainLooper());
class a extends Handler {
a(Looper looper) {
super(looper);
}
@Override
public void handleMessage(Message message) {
super.handleMessage(message);
int i = message.what;
if (i == 1) {
ODBannerView oDBannerView = ODBannerView.this;
ODBannerView.a(oDBannerView, ODBannerView.a(oDBannerView).getWidth(), ODBannerView.a(ODBannerView.this).getHeight(), (ODData.ODAdInfoBean) message.obj);
} else if (i == 2) {
ODBannerView.a(ODBannerView.this).removeAllViews();
Map map = (Map) message.obj;
ODBannerView.b(ODBannerView.this).onNo(((Integer) map.get(PluginConstants.KEY_ERROR_CODE)).intValue(), (String) map.get("message"));
} else if (i == 3 && ODBannerView.c(ODBannerView.this).getParent() != null) {
ODData.ODAdInfoBean oDAdInfoBean = (ODData.ODAdInfoBean) message.obj;
Map<String, Object> map2 = com.kc.openset.sdk.dsp.util.a.e;
if (map2.get(oDAdInfoBean.getMatId() + "show") == null) {
com.kc.openset.sdk.dsp.util.b.a().a("http://dsp.shenshiads.com/event/show", oDAdInfoBean);
g.a().a(oDAdInfoBean, "曝光");
}
Map<String, Object> map3 = com.kc.openset.sdk.dsp.util.a.e;
map3.put(oDAdInfoBean.getMatId() + "show", "111");
}
}
}
class b implements Callback {
static {
OSETSDKProtected.interface11(655);
}
b() {
}
@Override
public native void onFailure(Call call, IOException iOException);
@Override
public native void onResponse(Call call, Response response);
}
class c implements ViewTreeObserver.OnGlobalLayoutListener {
final ODData.ODAdInfoBean a;
static {
OSETSDKProtected.interface11(656);
}
c(ODData.ODAdInfoBean oDAdInfoBean) {
this.a = oDAdInfoBean;
}
@Override
public native void onGlobalLayout();
}
static {
OSETSDKProtected.interface11(657);
}
private ODBannerView() {
}
static native ViewGroup a(ODBannerView oDBannerView);
private native void a(int i, int i2, ODData.ODAdInfoBean oDAdInfoBean);
static native void a(ODBannerView oDBannerView, int i, int i2, ODData.ODAdInfoBean oDAdInfoBean);
private native void a(String str);
static native ODListener b(ODBannerView oDBannerView);
static native View c(ODBannerView oDBannerView);
static native Handler d(ODBannerView oDBannerView);
static native Activity e(ODBannerView oDBannerView);
public static native ODBannerView getInstance();
public native View getView();
public native void showBanner(Activity activity, ViewGroup viewGroup, String str, ODListener oDListener);
}