offerwallCallBack method

dynamic offerwallCallBack(
  1. MethodCall call
)

Implementation

offerwallCallBack(MethodCall call) {
  String method = call.method;
  var arguments = call.arguments;
  String adUnitId = "";
  if (arguments.containsKey("adUnitID")) {
    adUnitId = arguments["adUnitID"];
  }
  TPOfferwallAdListener? callBackListener;
  if (adUnitId.isNotEmpty && offerwallAdListenerMap.containsKey(adUnitId)) {
    callBackListener = offerwallAdListenerMap[adUnitId];
  } else {
    callBackListener = offerwallAdListener;
  }
  if (callBackListener == null) {
    print("not any offerwallAdListener");
    return;
  }
  TPOfferWallManager.callback(callBackListener, adUnitId, method, arguments);
}