setInterActiveAdListener method

dynamic setInterActiveAdListener(
  1. TPInterActiveAdListener listener, {
  2. String adUnitId = "",
})

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

Implementation

setInterActiveAdListener(TPInterActiveAdListener listener,
    {String adUnitId = ""}) {
  if (adUnitId.isNotEmpty) {
    TPListenerManager.interActiveAdListenerMap[adUnitId] = listener;
  } else {
    TPListenerManager.interActiveAdListener = listener;
  }
}