public interface IUnionSdk
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SDK_ENTRY_CLASS |
Modifier and Type | Method and Description |
---|---|
ICommonAd |
getCommonAd(android.content.Context context,
AdType adType,
android.view.ViewGroup container,
ICommonADListener listener)
获取普通广告类型实例
|
ICommonAd |
getVideoAd(android.content.Context context,
IVideoADListener listener)
获取激励视频广告实例
|
void |
init(android.app.Application app,
UnionSDKParam param)
初始化流量联盟广告SDK,尽量在Application中调用
|
static final java.lang.String SDK_ENTRY_CLASS
ICommonAd getCommonAd(android.content.Context context, AdType adType, android.view.ViewGroup container, ICommonADListener listener)
context
- ContextadType
- 所需的广告类型container
- 广告的容器listener
- 广告状态监听器ICommonAd getVideoAd(android.content.Context context, IVideoADListener listener)
context
- Contextlistener
- 激励视频广告状态监听器void init(android.app.Application app, UnionSDKParam param)
app
- Applicationparam
- 初始化参数 appKey和appSecret请在流量联盟官网申请