interActiveCallBack method
Implementation
interActiveCallBack(MethodCall call) {
String method = call.method;
var arguments = call.arguments;
String adUnitId = "";
if (arguments.containsKey("adUnitID")) {
adUnitId = arguments["adUnitID"];
}
TPInterActiveAdListener? callBackListener;
if (adUnitId.isNotEmpty && interActiveAdListenerMap.containsKey(adUnitId)) {
callBackListener = interActiveAdListenerMap[adUnitId];
} else {
callBackListener = interActiveAdListener;
}
if (callBackListener == null) {
print("not anyinterActiveAdListener");
return;
}
TPInteractiveManager.callback(
callBackListener, adUnitId, method, arguments);
}