setSplashListener method

dynamic setSplashListener(
  1. TPSplashAdListener listener, {
  2. String adUnitId = "",
})

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

Implementation

setSplashListener(TPSplashAdListener listener, {String adUnitId = ""}) {
  if (adUnitId.isNotEmpty) {
    TPListenerManager.splashAdListenerMap[adUnitId] = listener;
  } else {
    TPListenerManager.splashAdListener = listener;
  }
}