Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangruiyu committed Dec 12, 2024
1 parent ac40659 commit 78a6a22
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ohos/src/main/ets/components/plugin/FlutterUnionadPlugin.ets
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,10 @@ export default class FlutterUnionadPlugin implements FlutterPlugin, MethodCallHa
let mLoadListener: RewardAdLoadListener = {
onAdLoaded: (rewardAd: CSJRewardAd) => {
console.error("rewardVideoAd loaded 广告类型:${getAdType(ad.rewardVideoAdType)}")
this.rewardAd = rewardAd;
FlutterUnionadEventPlugin.sendContent(
new Map([["adType", "rewardAd"], ["onAdMethod", "onReady"]])
);
this.rewardAd = rewardAd;
// 广告基础信息加载完成x
if (this.uiAbility != null) {
rewardAd.setInteractionListener(adInteractionListener)
rewardAd.showRewardAd(this.uiAbility.context.windowStage)
}
},
onAdCached: (rewardAd: CSJRewardAd) => {
console.error("rewardVideoAd video cached2")
Expand Down

0 comments on commit 78a6a22

Please sign in to comment.