loadInteractionAd method

void loadInteractionAd(
  1. int type
)

预加载插屏广告

type 广告SDK

Implementation

void loadInteractionAd(int type) {
  interstitialLoadBean.lastSdk = type;
  if (type == UniversalSdkKType.TENCENT) {
    //优量汇
    FlutterTencentad.loadUnifiedInterstitialAD(
      androidId: interstitialLoadBean.tAndroidId,
      iosId: interstitialLoadBean.tIosId,
      isFullScreen: interstitialLoadBean.isFullScreen,
    );
  } else {
    //穿山甲
    FlutterUnionad.loadFullScreenVideoAdInteraction(
      androidCodeId: interstitialLoadBean.pAndroidId,
      iosCodeId: interstitialLoadBean.pIosId,
    );
  }
}