rewardVideoCallBack method

dynamic rewardVideoCallBack(
  1. MethodCall call
)

Implementation

rewardVideoCallBack(MethodCall call) {
  String method = call.method;
  var arguments = call.arguments;
  String adUnitId = "";
  if (arguments.containsKey("adUnitID")) {
    adUnitId = arguments["adUnitID"];
  }
  TPRewardVideoAdListener? callBackListener;
  if (adUnitId.isNotEmpty && rewardVideoAdListenerMap.containsKey(adUnitId)) {
    callBackListener = rewardVideoAdListenerMap[adUnitId];
  } else {
    callBackListener = rewardVideoAdListener;
  }
  if (callBackListener == null) {
    print("not any rewardVideoAdListener");
    return;
  }
  TPRewardVideoManager.callback(
      callBackListener, adUnitId, method, arguments);
}