花瓣 v4.6.12版本的 MD5 值为:6a3515d4d16d98931f1b3d25a91b257e
以下内容为反编译后的 TTAdConfig.java 源代码,内容仅作参考
package com.bytedance.sdk.openadsdk;
import com.bytedance.sdk.openadsdk.AdConfig;
import com.bytedance.sdk.openadsdk.live.ITTLiveTokenInjectionAuth;
import java.util.HashMap;
import java.util.Map;
public final class TTAdConfig implements AdConfig {
private String a;
private String b;
private boolean c;
private String f3015d;
private String f3016e;
private int f3017f;
private boolean f3018g;
private boolean f3019h;
private boolean f3020i;
private int[] j;
private boolean k;
private boolean l;
private int m;
private Map<String, Object> n;
private TTCustomController o;
private int p;
private ITTLiveTokenInjectionAuth q;
public static class Builder {
private String a;
private String b;
private String f3021d;
private String f3022e;
private int[] j;
private String[] m;
private TTCustomController o;
private int p;
private ITTLiveTokenInjectionAuth s;
private boolean c = false;
private int f3023f = 0;
private boolean f3024g = true;
private boolean f3025h = false;
private boolean f3026i = false;
private boolean k = true;
private boolean l = false;
private boolean n = false;
private int q = 2;
private int r = 0;
public Builder allowShowNotify(boolean z) {
this.f3024g = z;
return this;
}
@Deprecated
public Builder allowShowPageWhenScreenLock(boolean z) {
this.f3026i = z;
return this;
}
public Builder appId(String str) {
this.a = str;
return this;
}
public Builder appName(String str) {
this.b = str;
return this;
}
public Builder asyncInit(boolean z) {
this.n = z;
return this;
}
public TTAdConfig build() {
TTAdConfig tTAdConfig = new TTAdConfig();
tTAdConfig.setAppId(this.a);
tTAdConfig.setAppName(this.b);
tTAdConfig.setPaid(this.c);
tTAdConfig.setKeywords(this.f3021d);
tTAdConfig.setData(this.f3022e);
tTAdConfig.setTitleBarTheme(this.f3023f);
tTAdConfig.setAllowShowNotify(this.f3024g);
tTAdConfig.setDebug(this.f3025h);
tTAdConfig.setAllowShowPageWhenScreenLock(this.f3026i);
tTAdConfig.setDirectDownloadNetworkType(this.j);
tTAdConfig.setUseTextureView(this.k);
tTAdConfig.setSupportMultiProcess(this.l);
tTAdConfig.setNeedClearTaskReset(this.m);
tTAdConfig.setAsyncInit(this.n);
tTAdConfig.setCustomController(this.o);
tTAdConfig.setThemeStatus(this.p);
tTAdConfig.setExtra("plugin_update_conf", Integer.valueOf(this.q));
tTAdConfig.setExtra(TTAdConstant.KEY_AGE_GROUP, Integer.valueOf(this.r));
tTAdConfig.setInjectionAuth(this.s);
return tTAdConfig;
}
public Builder customController(TTCustomController tTCustomController) {
this.o = tTCustomController;
return this;
}
public Builder data(String str) {
this.f3022e = str;
return this;
}
public Builder debug(boolean z) {
this.f3025h = z;
return this;
}
public Builder directDownloadNetworkType(int... iArr) {
this.j = iArr;
return this;
}
public Builder injectionAuth(ITTLiveTokenInjectionAuth iTTLiveTokenInjectionAuth) {
this.s = iTTLiveTokenInjectionAuth;
return this;
}
public Builder keywords(String str) {
this.f3021d = str;
return this;
}
public Builder needClearTaskReset(String... strArr) {
this.m = strArr;
return this;
}
public Builder paid(boolean z) {
this.c = z;
return this;
}
public Builder setAgeGroup(int i2) {
this.r = i2;
return this;
}
public Builder setPluginUpdateConfig(int i2) {
this.q = i2;
return this;
}
public Builder supportMultiProcess(boolean z) {
this.l = z;
return this;
}
public Builder themeStatus(int i2) {
this.p = i2;
return this;
}
public Builder titleBarTheme(int i2) {
this.f3023f = i2;
return this;
}
public Builder useTextureView(boolean z) {
this.k = z;
return this;
}
}
@Override
public String getAppId() {
return this.a;
}
@Override
public String getAppName() {
return this.b;
}
@Override
public TTCustomController getCustomController() {
return this.o;
}
@Override
public String getData() {
return this.f3016e;
}
@Override
public int[] getDirectDownloadNetworkType() {
return this.j;
}
@Override
@Deprecated
public Object getExtra(String str) {
return this.n.get(str);
}
@Override
public ITTLiveTokenInjectionAuth getInjectionAuth() {
return this.q;
}
@Override
public String getKeywords() {
return this.f3015d;
}
@Override
@Deprecated
public String[] getNeedClearTaskReset() {
return new String[0];
}
@Override
public AdConfig.SdkInfo getSdkInfo() {
return new AdConfig.SdkInfo() {
@Override
public boolean isPlugin() {
return true;
}
@Override
public String pluginName() {
return "com.byted.pangle";
}
@Override
public int sdkVersionCode() {
return 4904;
}
@Override
public String sdkVersionName() {
return "4.9.0.4";
}
};
}
public int getThemeStatus() {
return this.p;
}
@Override
public int getTitleBarTheme() {
return this.f3017f;
}
@Override
public boolean isAllowShowNotify() {
return this.f3018g;
}
@Override
public boolean isAllowShowPageWhenScreenLock() {
return this.f3020i;
}
@Override
@Deprecated
public boolean isAsyncInit() {
return true;
}
@Override
public boolean isDebug() {
return this.f3019h;
}
@Override
public boolean isPaid() {
return this.c;
}
@Override
public boolean isSupportMultiProcess() {
return this.l;
}
@Override
public boolean isUseTextureView() {
return this.k;
}
@Override
public Object removeExtra(String str) {
return this.n.remove(str);
}
@Override
public void setAgeGroup(int i2) {
this.n.put(TTAdConstant.KEY_AGE_GROUP, Integer.valueOf(i2));
}
public void setAllowShowNotify(boolean z) {
this.f3018g = z;
}
public void setAllowShowPageWhenScreenLock(boolean z) {
this.f3020i = z;
}
public void setAppId(String str) {
this.a = str;
}
public void setAppName(String str) {
this.b = str;
}
@Deprecated
public void setAsyncInit(boolean z) {
}
public void setCustomController(TTCustomController tTCustomController) {
this.o = tTCustomController;
}
public void setData(String str) {
this.f3016e = str;
}
public void setDebug(boolean z) {
this.f3019h = z;
}
public void setDirectDownloadNetworkType(int... iArr) {
this.j = iArr;
}
@Override
@Deprecated
public void setExtra(String str, Object obj) {
this.n.put(str, obj);
}
public void setInjectionAuth(ITTLiveTokenInjectionAuth iTTLiveTokenInjectionAuth) {
this.q = iTTLiveTokenInjectionAuth;
}
public void setKeywords(String str) {
this.f3015d = str;
}
@Deprecated
public void setNeedClearTaskReset(String... strArr) {
}
public void setPaid(boolean z) {
this.c = z;
}
public void setSupportMultiProcess(boolean z) {
this.l = z;
}
public void setThemeStatus(int i2) {
this.p = i2;
}
public void setTitleBarTheme(int i2) {
this.f3017f = i2;
}
public void setUseTextureView(boolean z) {
this.k = z;
}
private TTAdConfig() {
this.c = false;
this.f3017f = 0;
this.f3018g = true;
this.f3019h = false;
this.f3020i = false;
this.k = true;
this.l = false;
this.m = 0;
this.n = new HashMap();
}
}