Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • D DFSDK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DFTui
  • DFSDK
  • Wiki
    • Docs
  • 信息流广告 DFTui_MessageView

信息流广告 DFTui_MessageView · Changes

Page history
modify files authored Apr 09, 2021 by chenm's avatar chenm
Hide whitespace changes
Inline Side-by-side
docs/信息流广告-DFTui_MessageView.md 0 → 100644
View page @ bfc6ebaf
## 信息流广告 DFTui_MessageView
DFTui_MessageView的受载体布局限制,内存边距8dp,开发者可根据需求设置载体布局;消息体中图片素材宽度撑满,高宽比最大值为0.5;
### 创建DFTui_MessageView对象
```java
DFTui_MessageView dFTui_MessageView=DFTui_MessageView.build($Context, "$appid", $MessageADListener);
```
### 加载DFTui_MessageView
```java
dFTui_MessageView.load()
```
### MessageADListener回调接口
```java
new MessageADListener() {
@Override
protected void onNoAD(AdError error) {
//无广告加载
}
@Override
protected void onADPresent() {
//广告展示
}
@Override
protected void onADClicked() {
//广告点击
}
@Override
protected void onADLoaded(DFTui_MessageView dfTui_baseView) {
//广告加载完毕
//viewGroup.addView(dfTui_baseView);
dfTui_baseView.show();
}
}
```
### 展示DFTui_MessageView
在MessageADListener的回调onADLoaded后,调用展示方法
```java
dfTui_messageView.show();
```
\ No newline at end of file
Clone repository

接入文档

  • SDK初始化配置
  • Android集成
  • 开屏广告 DFTui_SplashView
  • 信息流广告 DFTui_MessageView
  • Banner广告 DFTui_BannerView
  • 激励视频广告 DFTui_RewardAD
  • 异常反馈 AdError