splashCallBack method

dynamic splashCallBack(
  1. MethodCall call
)

Implementation

splashCallBack(MethodCall call) {
  String method = call.method;
  var arguments = call.arguments;
  String adUnitId = "";
  if (arguments.containsKey("adUnitID")) {
    adUnitId = arguments["adUnitID"];
  }
  TPSplashAdListener? callBackListener;
  if (adUnitId.isNotEmpty && splashAdListenerMap.containsKey(adUnitId)) {
    callBackListener = splashAdListenerMap[adUnitId];
  } else {
    callBackListener = splashAdListener;
  }
  if (callBackListener == null) {
    print("not any splashAdListener");
    return;
  }
  TPSplashManager.callback(callBackListener, adUnitId, method, arguments);
}