gpt4 book ai didi

android - 将 libgdx 动态壁纸与 appflood 集成

转载 作者:太空狗 更新时间:2023-10-29 15:54:08 26 4
gpt4 key购买 nike

我已经正确地整合了一切。唯一的问题是当我想加载广告时(appflood 的任何广告)示例是插页式广告

AppFlood.showFullScreen(this);

错误是

The method showFullScreen(Activity) in the type AppFlood is not applicable for the arguments (LiveWallpaper)

我曾经将 appflood 与我的扩展 AndroidApplication 类的 libgdx 游戏集成,但在动态壁纸中这不起作用。我也想让 appflood 在 libgdx 动态壁纸中工作

最佳答案

这是对@newbieUser 评论的回复

AppFlood.initialize(this, "", "", AppFlood.AD_ALL);
AppFlood.setEventDelegate( new AFEventDelegate() {
@Override
public void onClose(JSONObject arg0) {
finish();
}

@Override
public void onClick(JSONObject arg0) {

}
});


AppFlood.showFullScreen(this);

AppFlood.setEventDelegate用于添加监听

关于android - 将 libgdx 动态壁纸与 appflood 集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17483071/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com