bannerCallBack method

dynamic bannerCallBack(
  1. MethodCall call
)

Implementation

bannerCallBack(MethodCall call) {
  String method = call.method;
  var arguments = call.arguments;
  String adUnitId = "";
  if (arguments.containsKey("adUnitID")) {
    adUnitId = arguments["adUnitID"];
  }
  TPBannerAdListener? callBackListener;
  if (adUnitId.isNotEmpty && bannerAdListenerMap.containsKey(adUnitId)) {
    callBackListener = bannerAdListenerMap[adUnitId];
  } else {
    callBackListener = bannerAdListener;
  }
  if (callBackListener == null) {
    print("not any bannerAdListener");
    return;
  }
  TPBannerManager.callback(callBackListener, adUnitId, method, arguments);
}