setInterstitialListener method

dynamic setInterstitialListener(
  1. TPInterstitialAdListener listener, {
  2. String adUnitId = "",
})

设置广告Listener:adUnitId 设置后只返回指定广告位相关回调(可选)

Implementation

setInterstitialListener(TPInterstitialAdListener listener,
    {String adUnitId = ""}) {
  if (adUnitId.isNotEmpty) {
    TPListenerManager.interstitialAdListenerMap[adUnitId] = listener;
  } else {
    TPListenerManager.interstitialAdListener = listener;
  }
}