interstitialCallBack method

dynamic interstitialCallBack(
  1. MethodCall call
)

Implementation

interstitialCallBack(MethodCall call) {
  String method = call.method;
  var arguments = call.arguments;
  String adUnitId = "";
  if (arguments.containsKey("adUnitID")) {
    adUnitId = arguments["adUnitID"];
  }
  TPInterstitialAdListener? callBackListener;
  if (adUnitId.isNotEmpty &&
      interstitialAdListenerMap.containsKey(adUnitId)) {
    callBackListener = interstitialAdListenerMap[adUnitId];
  } else {
    callBackListener = interstitialAdListener;
  }
  if (callBackListener == null) {
    print("not any interstitialAdListener");
    return;
  }
  TPInterstitialManager.callback(
      callBackListener, adUnitId, method, arguments);
}